[magicmaze] Rebuild for new allegro-4.4

Hans de Goede jwrdegoede at fedoraproject.org
Fri Jul 15 14:23:52 UTC 2011


commit cea2e6a2a1d7cc2e9c0bbdbed291b41418de048e
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Fri Jul 15 16:25:01 2011 +0200

    Rebuild for new allegro-4.4

 magicmaze.spec |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/magicmaze.spec b/magicmaze.spec
index 6d0a957..86f93e1 100644
--- a/magicmaze.spec
+++ b/magicmaze.spec
@@ -1,6 +1,6 @@
 Name:           magicmaze
 Version:        1.0.2
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Board game featuring a maze which the players change each turn
 Group:          Amusements/Games
 License:        zlib and Redistributable, no modification permitted
@@ -12,7 +12,6 @@ Patch1:         maze-1.0-no-sound.patch
 Patch2:         maze-1.0-fhs.patch
 Patch3:         magicmaze-1.0.2-license-clarification.patch
 Patch4:         magicmaze-1.0.2-trademarks.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  gstream-devel dumb-devel desktop-file-utils
 Requires:       hicolor-icon-theme
 
@@ -46,7 +45,6 @@ make %{?_smp_mflags} -f makefile.unx PREFIX=%{_prefix} \
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make -f makefile.unx install PREFIX=$RPM_BUILD_ROOT%{_prefix}
 
 # below is the desktop file and icon stuff.
@@ -59,22 +57,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,-)
@@ -86,6 +80,9 @@ fi
 
 
 %changelog
+* Fri Jul 15 2011 Hans de Goede <hdegoede at redhat.com> - 1.0.2-6
+- Rebuild for new allegro-4.4
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list