Changes of Revision 3
[-] | Changed | gcdemu.spec |
x 1
2 Version: 1.5.0 3 Release: 1 4 License: GPLv2+ 5 -Group: User Interface/Desktops 6 +Group: System/X11/Utilities 7 URL: http://cdemu.sourceforge.net 8 Source: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2 9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10
11 %{__rm} -rf $RPM_BUILD_ROOT 12 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 13 %{__make} install DESTDIR=$RPM_BUILD_ROOT 14 +%__install -d %{buildroot}/etc/gconf/schemas 15 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 16 PW=`pwd` 17 cd %{buildroot}%{_datadir}/locale 18
19 cd $PW 20 %find_lang gcdemu --with-gnome 21 %suse_update_desktop_file -r -G "Mount ISO images" %{name} Utilities 22 -%find_gconf_schemas 23 -cat %{name}.schemas_list %{name}.lang >%{name}.lst 24 +#find_gconf_schemas 25 +#cat %{name}.schemas_list %{name}.lang >%{name}.lst 26 +cat %{name}.lang >%{name}.lst 27 28 %clean 29 %{__rm} -rf $RPM_BUILD_ROOT 30
31 #%postun 32 #scrollkeeper-update -q 33 # 34 -%pre -f %{name}.schemas_pre 35 - 36 -%preun -f %{name}.schemas_preun 37 - 38 -%posttrans -f %{name}.schemas_posttrans 39 +#%pre -f %{name}.schemas_pre 40 +# 41 +#%preun -f %{name}.schemas_preun 42 +# 43 +#%posttrans -f %{name}.schemas_posttrans 44 +%post 45 +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 46 + 47 +%postun 48 +if [ $1 -eq 0 ]; then 49 + /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas 50 +fi 51 52 %files -f %{name}.lst 53 %defattr(-,root,root,-) 54
55 %{_datadir}/pixmaps/* 56 %{_bindir}/gcdemu 57 %{_datadir}/applications/gcdemu.desktop 58 +%{_datadir}/glib-2.0/schemas/apps.gcdemu.gschema.xml 59 60 %changelog 61 * Mon Jan 23 2012 Carsten Schoene <cs@linux-administrator.com> - 1.5.0-1 62 |