rpms/gnome-games/devel gnome-games.spec,1.246,1.247

Matthias Clasen mclasen at fedoraproject.org
Tue Dec 22 21:35:23 UTC 2009


Author: mclasen

Update of /cvs/pkgs/rpms/gnome-games/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24912

Modified Files:
	gnome-games.spec 
Log Message:
more spec fixes



Index: gnome-games.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-games/devel/gnome-games.spec,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -p -r1.246 -r1.247
--- gnome-games.spec	22 Dec 2009 21:21:57 -0000	1.246
+++ gnome-games.spec	22 Dec 2009 21:35:23 -0000	1.247
@@ -223,11 +223,7 @@ gconftool-2 --makefile-install-rule \
 	gnotski.schemas             \
 	mahjongg.schemas            \
 > /dev/null || : )
-
-touch %{_datadir}/icons/hicolor
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
-  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
-fi
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
 
 %pre
 if [ "$1" -gt 1 ]; then
@@ -309,17 +305,24 @@ if [ "$1" -eq 0 ]; then
 fi
 
 %postun
-touch %{_datadir}/icons/hicolor
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
-  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+if [ $1 -eq 0 ]; then
+  touch --no-create %{_datadir}/icons/hicolor &> /dev/null
+  gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
 fi
 
 %postun extra
-touch %{_datadir}/icons/hicolor
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
-  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+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 || :
+
+%posttrans extra
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
 %files help -f help.lang
 
 %files -f translations.lang




More information about the scm-commits mailing list