[alex4] Rebuild for new allegro-4.4

Hans de Goede jwrdegoede at fedoraproject.org
Fri Jul 15 14:29:33 UTC 2011


commit f5fae1244ffa3ed4eb9ab9e7596f51635881cde2
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Fri Jul 15 16:30:42 2011 +0200

    Rebuild for new allegro-4.4

 alex4.spec |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/alex4.spec b/alex4.spec
index a33516c..8cc7018 100644
--- a/alex4.spec
+++ b/alex4.spec
@@ -1,6 +1,6 @@
 Name:           alex4
 Version:        1.0
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Alex the Allegator 4 - Platform game
 Group:          Amusements/Games
 License:        GPL+
@@ -12,7 +12,6 @@ Patch0:         alex4-unix.patch
 Patch1:         alex4-allegro-4.2.patch
 Patch2:         alex4-dot-files-endian-clean.patch
 Patch3:         alex4-fsf-address.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  allegro-devel dumb-devel desktop-file-utils ImageMagick
 Requires:       hicolor-icon-theme
 
@@ -39,7 +38,6 @@ popd
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 pushd src
 make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
 popd
@@ -54,22 +52,18 @@ install -p -m 644 %{SOURCE2} \
   $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,-)
@@ -81,6 +75,9 @@ fi
 
 
 %changelog
+* Fri Jul 15 2011 Hans de Goede <hdegoede at redhat.com> - 1.0-11
+- Rebuild for new allegro-4.4
+
 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list