[network-manager-applet/f18] Run glib-compile-schemas in %post scriplet (rh #852792)

Jirka Klimes jklimes at fedoraproject.org
Thu Aug 30 08:34:50 UTC 2012


commit e118bda798914fa30bc99b64e5ee2579d15e1fc2
Author: Jiří Klimeš <jklimes at redhat.com>
Date:   Thu Aug 30 10:29:45 2012 +0200

    Run glib-compile-schemas in %post scriplet (rh #852792)

 network-manager-applet.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/network-manager-applet.spec b/network-manager-applet.spec
index cb7c881..070fe8a 100644
--- a/network-manager-applet.spec
+++ b/network-manager-applet.spec
@@ -11,7 +11,7 @@
 Name: network-manager-applet
 Summary: A network control and status applet for NetworkManager
 Version: 0.9.7.0
-Release: 1%{snapshot}%{?dist}
+Release: 2%{snapshot}%{?dist}
 Group: Applications/System
 License: GPLv2+
 URL: http://www.gnome.org/projects/NetworkManager/
@@ -137,17 +137,18 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/nm-connection-edit
 
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/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
+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 || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
 
 
 %post -n nm-connection-editor
@@ -219,6 +220,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_libdir}/libnm-gtk.so
 
 %changelog
+* Thu Aug 30 2012 Jiří Klimeš <jklimes at redhat.com> - 0.9.7.0-2.git20120820
+- run glib-compile-schemas in %post scriplet (rh #852792)
+
 * Tue Aug 21 2012 Dan Winship <danw at redhat.com> - 0.9.7.0-1.git20120820
 - Update to 0.9.7.0 snapshot
 


More information about the scm-commits mailing list