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