rpms/bitmap/devel bitmap.spec,1.7,1.8

Štěpán Kasal kasal at fedoraproject.org
Tue Dec 15 19:15:24 UTC 2009


Author: kasal

Update of /cvs/extras/rpms/bitmap/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17672

Modified Files:
	bitmap.spec 
Log Message:
- silence scriptlets


Index: bitmap.spec
===================================================================
RCS file: /cvs/extras/rpms/bitmap/devel/bitmap.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- bitmap.spec	24 Jul 2009 18:06:49 -0000	1.7
+++ bitmap.spec	15 Dec 2009 19:15:23 -0000	1.8
@@ -1,6 +1,6 @@
 Name: bitmap
 Version: 1.0.3
-Release: 6%{?dist}
+Release: 7%{?dist}
 Summary: Bitmap editor and converter utilities for the X Window System
 Group: User Interface/X
 Url: http://www.x.org
@@ -57,12 +57,20 @@ rm -rf %{buildroot}
 
 
 %post
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+# update the icon cache, if it exists
+if [ -d %{_datadir}/icons/hicolor -a -x %{_bindir}/gtk-update-icon-cache ]
+then
+  touch %{_datadir}/icons/hicolor
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+fi
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+# update the icon cache, if it exists
+if [ -d %{_datadir}/icons/hicolor -a -x %{_bindir}/gtk-update-icon-cache ]
+then
+  touch %{_datadir}/icons/hicolor
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+fi
 
 
 %files
@@ -79,6 +87,9 @@ touch --no-create %{_datadir}/icons/hico
 %{_mandir}/man1/*.1*
 
 %changelog
+* Tue Dec 15 2009 Stepan Kasal <skasal at redhat.com> - 1.0.3-7
+- silence scriptlets
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.3-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list