From b0a8569286bf106d757a67920cb3499e544cdc48 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Sat, 7 May 2011 18:45:56 -0700 Subject: [PATCH] Update scriptlets per packaging guidelines --- gimp.spec | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/gimp.spec b/gimp.spec index 5d05967..8719f05 100644 --- a/gimp.spec +++ b/gimp.spec @@ -31,7 +31,7 @@ Summary: GNU Image Manipulation Program Name: gimp Epoch: 2 Version: 2.6.11 -Release: 8%{?dist} +Release: 9%{?dist} %define binver 2.6 %define gimp_lang_ver 20 %define interfacever 2.0 @@ -342,21 +342,19 @@ ln -snf gimprc-%{binver}.5 %{buildroot}/%{_mandir}/man5/gimprc.5 rm -rf %{buildroot} %post -/usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi +update-desktop-database &> /dev/null || : +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun -if [ "$1" = "0" ]; then - /usr/bin/update-desktop-database %{_datadir}/applications &> /dev/null || : -fi -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +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 || : fi +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig @@ -488,6 +486,9 @@ fi %{_libdir}/gimp/%{interfacever}/plug-ins/help-browser %changelog +* Sat May 07 2011 Christopher Aillon - 2:2.6.11-9 +- Update desktop database, icon cache scriptlets + * Sun Mar 13 2011 Marek Kasik - 2:2.6.11-8 - Rebuild (poppler-0.16.3)