[revelation] fix for gconf scriptlets
Jef Spaleta
jspaleta at fedoraproject.org
Sun Jun 24 21:22:09 UTC 2012
commit 7630c7d077072120bb6a391a8522bed52c3e9b1e
Author: Jef Spaleta <jspaleta at fedoraproject.org>
Date: Sun Jun 24 13:21:41 2012 -0800
fix for gconf scriptlets
revelation.spec | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/revelation.spec b/revelation.spec
index b69aae6..ffefaf6 100644
--- a/revelation.spec
+++ b/revelation.spec
@@ -81,19 +81,18 @@ desktop-file-install \
$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%pre
+%gconf_schema_prepare %{name}
%gconf_schema_obsolete %{name}-applet
%post
-export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || :
+%gconf_schema_upgrade %{name}
update-mime-database %{_datadir}/mime &> /dev/null || :
update-desktop-database %{_datadir}/applications &> /dev/null || :
gtk-update-icon-cache -qf %{_datadir}/icons/hicolor &> /dev/null || :
%preun
-export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas &>/dev/null || :
+%gconf_schema_remove %{name}
%postun
update-mime-database %{_datadir}/mime &> /dev/null || :
More information about the scm-commits
mailing list