[ants] Rebuild for new allegro-4.4

Hans de Goede jwrdegoede at fedoraproject.org
Fri Jul 15 14:22:21 UTC 2011


commit d93d533bb167c36da78d73e188aea1fe3583afa8
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Fri Jul 15 16:23:31 2011 +0200

    Rebuild for new allegro-4.4

 ants.spec |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/ants.spec b/ants.spec
index 9521f73..b9b456f 100644
--- a/ants.spec
+++ b/ants.spec
@@ -1,6 +1,6 @@
 Name:           ants
 Version:        1.4
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Guide your ants safely home before they drop of the cliff
 Group:          Amusements/Games
 License:        Public Domain
@@ -11,7 +11,6 @@ Source2:        ants-level-editor.desktop
 Source3:        ants.png
 Source4:        license-info
 Patch0:         ants-1.4-fixes.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  allegro-devel desktop-file-utils
 Requires:       hicolor-icon-theme
 
@@ -72,17 +71,17 @@ 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,-)
@@ -100,6 +99,9 @@ fi
 
 
 %changelog
+* Fri Jul 15 2011 Hans de Goede <hdegoede at redhat.com> - 1.4-9
+- Rebuild for new allegro-4.4
+
 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list