diff --git a/adanaxisgpl-1.2.5-gcc47.patch b/adanaxisgpl-1.2.5-gcc47.patch new file mode 100644 index 0000000..c2f093b --- /dev/null +++ b/adanaxisgpl-1.2.5-gcc47.patch @@ -0,0 +1,12 @@ +diff -up adanaxisgpl-1.2.5/src/Mushcore/MushcoreSingleton.h~ adanaxisgpl-1.2.5/src/Mushcore/MushcoreSingleton.h +--- adanaxisgpl-1.2.5/src/Mushcore/MushcoreSingleton.h~ 2007-04-18 11:23:13.000000000 +0200 ++++ adanaxisgpl-1.2.5/src/Mushcore/MushcoreSingleton.h 2012-01-13 10:36:18.638100466 +0100 +@@ -83,7 +83,7 @@ template + inline void + MushcoreSingleton::SingletonUncheckedNew(void) + { +- SingletonPtrSet(new SingletonType); ++ MushcoreSingleton::SingletonPtrSet(new SingletonType); + + #ifdef MUSHCORE_SINGLETON_TESTING + cerr << "Created " << typeid(SingletonType).name() << " singleton " << endl; diff --git a/adanaxisgpl.spec b/adanaxisgpl.spec index 9e54558..0428143 100644 --- a/adanaxisgpl.spec +++ b/adanaxisgpl.spec @@ -1,59 +1,21 @@ -# Spec file for Mandriva Linux -# $Id: adanaxisgpl.spec,v 1.6 2009/07/24 16:34:49 jkeating Exp $ -# $Log: adanaxisgpl.spec,v $ -# Revision 1.6 2009/07/24 16:34:49 jkeating -# - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild -# -# Revision 1.4 2007/10/18 00:04:13 southa -# Fedora packaging review comments -# -# Revision 1.3 2007/10/17 23:44:50 southa -# Fedora packaging review comments -# -# Revision 1.2 2007/09/27 12:10:09 southa -# Fixed changelog -# -# Revision 1.1 2007/09/27 11:52:44 southa -# Fedora release -# -# Revision 1.1 2007/06/30 16:02:14 southa -# Generic packaging -# -# Revision 1.3 2007/06/29 16:48:30 southa -# Mandriva build -# -# Revision 1.2 2007/06/29 14:41:54 southa -# Mandriva release -# -# Revision 1.1 2007/06/29 12:05:04 southa -# Mandriva packaging -# - -%define title Adanaxis GPL -%define longtitle Adanaxis GPL - an action game in four spatial dimensions - Summary: Action game in four spatial dimensions Name: adanaxisgpl Version: 1.2.5 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2 Group: Amusements/Games URL: http://www.mushware.com/ - Source0: http://www.mushware.com/files/%{name}-1.2.5.tar.gz - -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) - -BuildRequires: desktop-file-utils -BuildRequires: freeglut-devel -BuildRequires: expat-devel -BuildRequires: libjpeg-devel -BuildRequires: libtiff-devel -BuildRequires: libvorbis-devel -BuildRequires: pcre-devel -BuildRequires: SDL_mixer-devel - Patch0: adanaxisgpl-1.2.5-const.patch +Patch1: adanaxisgpl-1.2.5-gcc47.patch +BuildRequires: desktop-file-utils +BuildRequires: freeglut-devel +BuildRequires: expat-devel +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: libvorbis-devel +BuildRequires: pcre-devel +BuildRequires: SDL_mixer-devel %description Adanaxis is a fast-moving first person shooter set in deep space, where the @@ -69,25 +31,23 @@ http://www.mushware.com/. Hardware-accelerated 3D is recommended, ideally with support for OpenGL Shading Language. + %prep %setup -q -%patch0 -p1 -b .const +%patch0 -p1 +%patch1 -p1 + %build %configure make %{?_smp_mflags} -%install -rm -rf %{buildroot} -make DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p" install - # Build .desktop files - cat > %{name}.desktop < %{name}-recover.desktop </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 -%clean -rm -rf %{buildroot} +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + %files -%defattr(0755,root,root,0755) -%_bindir/* -%defattr(0644,root,root,0755) -%doc COPYING README INSTALL ChangeLog AUTHORS -%dir %{_datadir}/%{name} +%doc COPYING README ChangeLog AUTHORS +%{_bindir}/* +%{_datadir}/%{name} %{_datadir}/applications/* -%{_datadir}/%{name}/* %{_datadir}/icons/hicolor/16x16/apps/%{name}.png %{_datadir}/icons/hicolor/32x32/apps/%{name}.png %{_datadir}/icons/hicolor/48x48/apps/%{name}.png -%_mandir/man6/%{name}*.6* +%{_mandir}/man6/%{name}*.6* + %changelog +* Thu Jan 12 2012 Hans de Goede - 1.2.5-8 +- Various specfile cleanups +- Fix building with gcc-4.7 + * Thu Jan 12 2012 Fedora Release Engineering - 1.2.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild