[overgod] Rebuild for new allegro-4.4

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


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

    Rebuild for new allegro-4.4

 overgod.spec |   25 +++++++++++--------------
 1 files changed, 11 insertions(+), 14 deletions(-)
---
diff --git a/overgod.spec b/overgod.spec
index effc873..51336a3 100644
--- a/overgod.spec
+++ b/overgod.spec
@@ -1,6 +1,6 @@
 Name:           overgod
 Version:        1.0
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        Another arcade-style shoot-em-up
 Group:          Amusements/Games
 License:        GPLv2+
@@ -9,7 +9,6 @@ Source0:        http://downloads.sourceforge.net/overgod/overgod.tar.gz
 Source1:        overgod.desktop
 Source2:        overgod.png
 Patch0:         overgod-1.0.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  allegro-devel desktop-file-utils
 Requires:       hicolor-icon-theme
 
@@ -35,7 +34,6 @@ make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install PREFIX=$RPM_BUILD_ROOT%{_prefix}
 
 # below is the desktop file and icon stuff.
@@ -48,22 +46,18 @@ install -p -m 644 %{SOURCE2} \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/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,-)
@@ -75,6 +69,9 @@ fi
 
 
 %changelog
+* Sat Jul 16 2011 Hans de Goede <hdegoede at redhat.com> - 1.0-13
+- Rebuild for new allegro-4.4
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list