[zasx] Rebuild for new allegro-4.4

Hans de Goede jwrdegoede at fedoraproject.org
Sat Jul 16 12:54:21 UTC 2011


commit fdf24a6fc86f4816fa3a0a6765406a591c607dfd
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Sat Jul 16 14:55:05 2011 +0200

    Rebuild for new allegro-4.4

 zasx.spec |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/zasx.spec b/zasx.spec
index faf1b7e..4a11eb0 100644
--- a/zasx.spec
+++ b/zasx.spec
@@ -1,6 +1,6 @@
 Name:           zasx
 Version:        1.30
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Asteroid like game with powerups
 Group:          Amusements/Games
 License:        GPLv2+ and Freely redistributable without restriction
@@ -9,7 +9,6 @@ Source0:        http://www.bob.allegronetwork.com/zasx/zasx130s.zip
 Source1:        zasx.desktop
 Patch0:         zasx-1.30-fixes.patch
 Patch1:         zasx-1.30-datadir.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  dumb-devel ImageMagick desktop-file-utils
 Requires:       hicolor-icon-theme
 
@@ -34,7 +33,6 @@ convert -transparent black %{name}.ico %{name}.png
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
 
 # below is the desktop file and icon stuff.
@@ -47,22 +45,18 @@ install -p -m 644 %{name}.png \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %post
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor || :
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
-   %{_bindir}/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 || :
+
 
 %files
 %defattr(-,root,root,-)
@@ -74,6 +68,9 @@ fi
 
 
 %changelog
+* Sat Jul 16 2011 Hans de Goede <hdegoede at redhat.com> - 1.30-11
+- Rebuild for new allegro-4.4
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.30-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list