From 03f01eac8437d01b89b0d2c4620d587a788a796d Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Sat, 7 May 2011 19:41:16 -0700 Subject: [PATCH] Update gsettings scriptlet http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#GSettings_Schema (don't compile schemas twice on updating the package, only once is sufficient) --- gvfs.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gvfs.spec b/gvfs.spec index fcbf519..768d21f 100644 --- a/gvfs.spec +++ b/gvfs.spec @@ -1,7 +1,7 @@ Summary: Backends for the gio framework in GLib Name: gvfs Version: 1.8.1 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gtk.org @@ -175,7 +175,9 @@ update-gio-modules "$host" &> /dev/null || : # Update desktop files mime mappings: update-desktop-database &> /dev/null ||: update-gio-modules "$host" &> /dev/null || : -glib-compile-schemas %{_datadir}/glib-2.0/schemas || : +if [ $1 -eq 0 ] ; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas || : +fi %posttrans glib-compile-schemas %{_datadir}/glib-2.0/schemas || : @@ -310,6 +312,9 @@ killall -USR1 gvfsd >&/dev/null || : %endif %changelog +* Sat May 07 2011 Christopher Aillon - 1.8.1-2 +- Update gsettings scriptlet + * Tue Apr 26 2011 Tomas Bzatek - 1.8.1-1 - Update to 1.8.1