Some spec and build system cleanups

Make clean keeps wanting to remove virt-manager.pot, so let it I guess.
This commit is contained in:
Cole Robinson 2011-07-12 15:03:06 -04:00
parent 4465d6f0be
commit bea75e35a1
3 changed files with 5 additions and 4504 deletions

View File

File diff suppressed because it is too large Load Diff

View File

@ -139,34 +139,17 @@ make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%pre %pre
if [ "$1" -gt 1 ]; then %gconf_schema_prepare %{name}
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
fi
%post %post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` update-desktop-database -q %{_datadir}/applications
gconftool-2 --makefile-install-rule \ %gconf_schema_upgrade virt-manager
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
update-desktop-database %{_datadir}/applications
# Revive when we update help docs
#if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q -o %{_datadir}/omf/%{name}; fi
%postun %postun
update-desktop-database %{_datadir}/applications update-desktop-database -q %{_datadir}/applications
# Revive when we update help docs
#if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update -q; fi
%preun %preun
if [ "$1" -eq 0 ]; then %gconf_schema_remove %{name}
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
fi
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -187,10 +170,6 @@ fi
%dir %{_datadir}/%{name}/virtManager/ %dir %{_datadir}/%{name}/virtManager/
%{_datadir}/%{name}/virtManager/*.py* %{_datadir}/%{name}/virtManager/*.py*
# Revive when we update help docs
#%{_datadir}/omf/%{name}/
#%{_datadir}/gnome/help/%{name}
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/%{name}.service %{_datadir}/dbus-1/services/%{name}.service