rpms/powermanga/devel powermanga.spec,1.21,1.22

Matthias Saou thias at fedoraproject.org
Mon Dec 22 20:21:43 UTC 2008


Author: thias

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

Modified Files:
	powermanga.spec 
Log Message:
Add coreutils requirement for scriplets (#475928) and enclose gtk-update-icon-cache scriplet calls in "ifs".



Index: powermanga.spec
===================================================================
RCS file: /cvs/extras/rpms/powermanga/devel/powermanga.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- powermanga.spec	20 Feb 2008 04:33:35 -0000	1.21
+++ powermanga.spec	22 Dec 2008 20:21:13 -0000	1.22
@@ -1,7 +1,7 @@
 Summary: Arcade 2D shoot-them-up game
 Name: powermanga
 Version: 0.90
-Release: 3
+Release: 4
 License: GPLv3+
 Group: Amusements/Games
 URL: http://linux.tlk.fr/games/Powermanga/
@@ -17,6 +17,8 @@
 BuildRequires: zlib-devel
 BuildRequires: libpng-devel
 BuildRequires: desktop-file-utils
+Requires(post): coreutils
+Requires(postun): coreutils
 
 %description
 Powermanga is an arcade 2D shoot-them-up game with 41 levels and more than
@@ -64,11 +66,15 @@
 
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+    %{_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 || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
 
 
 %files
@@ -86,7 +92,11 @@
 
 
 %changelog
-* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 0.90-3
+* Mon Oct 22 2008 Matthias Saou <http://freshrpms.net/> 0.90-4
+- Add coreutils requirement for scriplets (#475928).
+- Enclose gtk-update-icon-cache scriplet calls in "ifs".
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org>
 - Autorebuild for GCC 4.3
 
 * Mon Oct 22 2007 Matthias Saou <http://freshrpms.net/> 0.90-2




More information about the fedora-extras-commits mailing list