From 9720c20de499412c86c67bf04d9435145c42fe47 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 10 May 2013 12:55:50 -0700 Subject: [PATCH] update scriptlets to match current guidelines --- gcr.spec | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/gcr.spec b/gcr.spec index 8b346b5..a279ece 100644 --- a/gcr.spec +++ b/gcr.spec @@ -1,6 +1,6 @@ Name: gcr Version: 3.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library for bits of crypto UI and parsing Group: Development/Libraries @@ -62,24 +62,24 @@ chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gcr-prompter %post /sbin/ldconfig -update-mime-database %{_datadir}/mime &> /dev/null || : -update-desktop-database &> /dev/null || : -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 +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +/usr/bin/update-desktop-database &> /dev/null || : +/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /sbin/ldconfig -update-mime-database %{_datadir}/mime &> /dev/null || : -update-desktop-database &> /dev/null || : +/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : +/usr/bin/update-desktop-database &> /dev/null || : +if [ $1 -eq 0 ] ; then + /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi %posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : -glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %files -f %{name}.lang @@ -124,6 +124,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : %changelog +* Fri May 10 2013 Adam Williamson - 3.9.1-2 +- use current guidelines for mimeinfo, desktop-database, gsettings + schema and icon cache scriptlets + * Sat May 04 2013 Kalev Lember - 3.9.1-1 - Update to 3.9.1