[atomorun] run autoreconf for aarch64 support (rhbz#925046)

Hans de Goede jwrdegoede at fedoraproject.org
Mon Apr 29 15:26:38 UTC 2013


commit 9287fb3d3a378efe4def02d6383a290213209093
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Mon Apr 29 17:30:25 2013 +0200

    run autoreconf for aarch64 support (rhbz#925046)

 atomorun.spec |   35 +++++++++++++++++++++++++----------
 1 files changed, 25 insertions(+), 10 deletions(-)
---
diff --git a/atomorun.spec b/atomorun.spec
index f2fc057..a49f1af 100644
--- a/atomorun.spec
+++ b/atomorun.spec
@@ -2,7 +2,7 @@
 
 Name:           atomorun
 Version:        1.1
-Release:        0.14.%{prever}%{?dist}
+Release:        0.15.%{prever}%{?dist}
 Summary:        Jump & Run game where you have to flee an exploding nuclear bomb
 Group:          Amusements/Games
 License:        GPL+
@@ -12,44 +12,55 @@ Source0:        %{name}-%{version}_%{prever}.tar.gz
 Source1:        atomorun.desktop
 Patch0:         atomorun-1.1-missing-protos.patch
 BuildRequires:  SDL_mixer-devel SDL_image-devel libtiff-devel libvorbis-devel
-BuildRequires:  alsa-lib-devel desktop-file-utils
+BuildRequires:  alsa-lib-devel desktop-file-utils libtool
 Requires:       hicolor-icon-theme
 
 %description
 Atomorun is a OpenGL Jump&Run game where you have to flee an exploding
 nuclear bomb.
 
+
 %prep
 %setup -q -n %{name}-%{version}_%{prever}
 %patch0 -p1
+autoreconf -i -f
+
 
 %build
 %configure
 make %{?_smp_mflags}
 
+
 %install
 %make_install
 rm $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/atomorun_winicon.ico
 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc/%{name}
 
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
-desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
+desktop-file-install \
+%if 0%{?fedora} && 0%{?fedora} < 19
+  --vendor fedora            \
+%endif
+  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+  %{SOURCE1}
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
 install -p -m 644 pixmaps/%{name}_icon.png \
   $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 
+
 %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
 %doc AUTHORS ChangeLog COPYING README TODO
 %{_bindir}/%{name}
@@ -57,7 +68,11 @@ fi
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
 
+
 %changelog
+* Mon Apr 29 2013 Hans de Goede <hdegoede at redhat.com> - 1.1-0.15.pre2
+- run autoreconf for aarch64 support (rhbz#925046)
+
 * Sun Feb 10 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 1.1-0.14.pre2
 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
 - clean up spec to follow current guidelines


More information about the scm-commits mailing list