[gnome-color-manager] Update gsettings scriptlet

Christopher Aillon caillon at fedoraproject.org
Sun May 8 01:58:49 UTC 2011


commit d6c2f2ffb4c714d429cc862a4a803b786380f6a4
Author: Christopher Aillon <caillon at redhat.com>
Date:   Sat May 7 18:58:39 2011 -0700

    Update gsettings scriptlet
    
    http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema

 gnome-color-manager.spec |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnome-color-manager.spec b/gnome-color-manager.spec
index 55c8319..f57517a 100644
--- a/gnome-color-manager.spec
+++ b/gnome-color-manager.spec
@@ -1,7 +1,7 @@
 Summary:   Color management tools for GNOME
 Name:      gnome-color-manager
 Version:   3.1.1
-Release:   1%{?dist}
+Release:   2%{?dist}
 License:   GPLv2+
 Group:     Applications/System
 URL:       http://projects.gnome.org/gnome-color-manager/
@@ -40,9 +40,6 @@ BuildRequires: clutter-gtk-devel
 # GNOME and KDE have different session policy agents
 Provides: color-policy-agent
 
-Requires(post):   /usr/bin/gtk-update-icon-cache
-Requires(postun): /usr/bin/gtk-update-icon-cache
-
 # obsolete sub-package
 Obsoletes: gnome-color-manager-devel <= 3.1.1
 Provides: gnome-color-manager-devel
@@ -73,19 +70,19 @@ done
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 update-desktop-database %{_datadir}/applications &> /dev/null || :
 update-mime-database %{_datadir}/mime &> /dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %postun
 if [ $1 -eq 0 ]; then
     touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
     gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 fi
 update-desktop-database %{_datadir}/applications &> /dev/null || :
 update-mime-database %{_datadir}/mime &> /dev/null || :
-glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %files -f %{name}.lang
 %defattr(-,root,root,-)
@@ -113,6 +110,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
 %{_datadir}/dbus-1/interfaces/org.gnome.ColorManager.xml
 
 %changelog
+* Sat May 07 2011 Christopher Aillon <caillon at redhat.com> - 3.1.1-2
+- Update gsettings scriptlet
+
 * Fri May 06 2011 Richard Hughes <rhughes at redhat.com> - 3.1.1-1
 - New upstream version.
 


More information about the scm-commits mailing list