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 - 1.4-9 +- Rebuild for new allegro-4.4 + * Mon Feb 07 2011 Fedora Release Engineering - 1.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild