# 5674 is the svn tag for the 7.71.2 release %global svnver 5674 Name: alienarena Summary: Multiplayer retro sci-fi deathmatch game Version: 7.71.2 Release: 1%{?dist} License: GPLv2+ # Source0: http://red.planetarena.org/files/%%{name}-%%{version}-linux20130827.tar.gz # svn co svn://svn.icculus.org/alienarena/trunk # cd trunk # rm -rf *.exe *.dll # cd .. # mv trunk alienarena-7.71.2-svn5674 # tar --exclude-vcs -cJf alienarena-7.71.2-svn5674.tar.xz alienarena-7.71.2-svn5674 Source0: alienarena-%{version}-svn%{svnver}.tar.xz Source1: %{name}.desktop Source2: GPL.acebot.txt Source3: alienarena.appdata.xml Patch3: alienarena-7.66-no-qglBlitFramebufferEXT.patch Patch5: alienarena-7.71.2-svn5674-system-ode-double.patch # I started to clean this up properly # ... but there are a lot of misused globals here. A LOT. # So I just added -fcommon. Patch6: alienarena-7.71.1-gcc10.patch URL: http://red.planetarena.org/ BuildRequires: gcc BuildRequires: libX11-devel, libXext-devel, libXxf86vm-devel, libjpeg-devel BuildRequires: mesa-libGL-devel, mesa-libGLU-devel, curl-devel, libpng-devel BuildRequires: libvorbis-devel, ode-devel, openal-soft-devel, freetype-devel BuildRequires: desktop-file-utils BuildRequires: make Requires: %{name}-data = 1:%{version} Requires: desktop-file-utils >= 0.9, opengl-games-utils Requires: openal-soft%{?_isa} # s390x cannot unpack the very large source tarball reliably. # given the unlikely scenario where someone wants to play alienarena # (or run a server) on an s390x... i feel it is safe to excludearch # If you disagree, feel free to FIX LARGE FILE OPS ON s390x. ExcludeArch: s390x %description Alien Arena is a furious frag fest with arenas ranging from the small to the massive. With game modes such as Capture The Flag and Tactical, there are terrific team-based experiences to be had as well as 1v1 duels, free-for-all and dozens of mutators to alter the game play to your liking. %package server Summary: Dedicated server for alienarena, the FPS game Requires: %{name}-data = 1:%{version} %description server Alien Arena is a furious frag fest with arenas ranging from the small to the massive. With game modes such as Capture The Flag and Tactical, there are terrific team-based experiences to be had as well as 1v1 duels, free-for-all and dozens of mutators to alter the game play to your liking. This is the dedicated server. %package data Summary: Game Data for alienarena, the FPS game Epoch: 1 BuildArch: noarch License: Freely redistributable without restriction %description data Alien Arena is a furious frag fest with arenas ranging from the small to the massive. With game modes such as Capture The Flag and Tactical, there are terrific team-based experiences to be had as well as 1v1 duels, free-for-all and dozens of mutators to alter the game play to your liking. This is the game data. %prep %setup -q -n %{name}-%{version}-svn%{svnver} %patch3 -p1 -b .no-qglBlitFramebufferEXT %patch5 -p1 -b .ode-double %patch6 -p1 -b .gcc10 # We don't want the bundled ode code. rm -rf source/unix/ode # Copy license clarification for acebot cp -p %{SOURCE2} . # clean up end-line encoding [[ -e docs/README.txt ]] && %{__sed} -i 's/\r//' docs/README.txt # So, AlienArena now "uses" openal by dlopening the library, which is hardcoded # to "libopenal.so". That file only lives in openal-devel, so we need to adjust # the hardcoding. LIBOPENAL=`ls %{_libdir}/libopenal.so.? | cut -d "/" -f 4` sed -i "s|\"libopenal.so\"|\"$LIBOPENAL\"|g" source/unix/qal_unix.c %build export PTHREAD_LIBS="-lpthread" export PTHREAD_CFLAGS="-pthread" %global optflags %{optflags} -fcommon %configure --without-xf86dga --with-system-libode make %{?_smp_mflags} %install %make_install %{__mkdir_p} %{buildroot}%{_datadir}/appdata cp -a %{SOURCE3} %{buildroot}%{_datadir}/appdata %{__mkdir_p} %{buildroot}%{_datadir}/applications desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1} mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ mv %{buildroot}%{_datadir}/icons/%{name}/*.png \ %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/ # Fedora's little opengl checker ln -s opengl-game-wrapper.sh %{buildroot}/%{_bindir}/%{name}-wrapper cp -a GPL.acebot.txt %{buildroot}%{_defaultdocdir}/%{name}/ %files %{_bindir}/%{name} %{_bindir}/%{name}-wrapper %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/32x32/apps/*.png %{_datadir}/appdata/*.xml %files server %{_bindir}/alienarena-ded %files data %doc GPL.acebot.txt %{_defaultdocdir}/%{name}/ %{_datadir}/%{name} %changelog * Mon Jan 25 2021 Tom Callaway - 7.71.2-1 - update to 7.71.2 * Mon Jul 27 2020 Fedora Release Engineering - 7.71.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Feb 5 2020 Tom Callaway - 7.71.1-3 - fix FTBFS - excludeArch s390x * Tue Jan 28 2020 Fedora Release Engineering - 7.71.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Nov 4 2019 Tom Callaway - 7.71.1-1 - update to svn trunk (7.71.1) - update descriptions * Wed Jul 24 2019 Fedora Release Engineering - 7.71.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 7.71.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Aug 27 2018 Tom Callaway - 7.71.0-1 - update to 7.71.0 * Thu Jul 12 2018 Fedora Release Engineering - 7.66-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 7.66-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 07 2018 Igor Gnatenko - 7.66-13 - Remove obsolete scriptlets * Wed Aug 02 2017 Fedora Release Engineering - 7.66-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 7.66-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 7.66-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 7.66-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 16 2015 Fedora Release Engineering - 7.66-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 9 2015 Tom Callaway - 7.66-7 - bring all code to SVN4307 to try to resolve ragdoll crashes * Mon Jan 12 2015 Tom Callaway - 7.66-6 - ragdoll fix (SVN: 4304) * Tue Nov 4 2014 Tom Callaway - 7.66-5 - rebuild for new libode * Fri Aug 15 2014 Fedora Release Engineering - 7.66-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 7.66-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Nov 5 2013 Tom Callaway - 7.66-1 - update to 7.66 - add appdata file (bz 1023990) * Wed Sep 4 2013 Chandler Wilkerson - 7.65-5 - Added aarch64 patch pending upstream move to autoconf 2.69 in next release (bz 924982) - Tweaked license line of alienarena-data package to match license text. (bz 888201) * Fri Aug 16 2013 Tom Callaway - 7.65-4 - fix license text (bz 888201) * Sat Aug 03 2013 Fedora Release Engineering - 7.65-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 20 2013 Hans de Goede - 7.65-2 - Rebuild for new ode * Tue Feb 19 2013 Chandler Wilkerson - 7.65-1 - update to 7.65 upstream - remove ode-quickstep patch after upstream fix now works with 0.12 * Sat Feb 09 2013 Rahul Sundaram - 7.60.1-6 - remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247 - clean up spec to follow current guidelines * Fri Jan 18 2013 Adam Tkac - 7.60.1-5 - rebuild due to "jpeg8-ABI" feature drop * Sun Nov 4 2012 Chandler Wilkerson - 7.60.1-4 - Fixed epoch mismatch for -data dependency in -server subpackage stanza * Wed Oct 31 2012 Chandler Wilkerson - 7.60.1-3 - Added epoch 1 to -data package to override previously separate alienarena-data package - Reapplied original patches for FBOblit fix and libopenal linking * Thu Oct 25 2012 Chandler Wilkerson - 7.60.1-2 - Added ode-quickstep patch to fix obsoleted function call from pre 0.12 ode * Wed Oct 24 2012 Chandler Wilkerson - 7.60.1-1 - update to 7.60.1 - change to using source tarball * Wed Jul 18 2012 Fedora Release Engineering - 7.53-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 7.53-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jan 6 2012 Tom Callaway - 7.53-1 - update to 7.53 * Fri Oct 21 2011 Tom Callaway - 7.52-1 - update to 7.52 * Thu Mar 24 2011 Tom Callaway - 7.51-2 - use system ode-double - disable xf86dga to add mouse sanity * Wed Mar 23 2011 Tom Callaway - 7.51-1 - update to 7.51 * Mon Feb 07 2011 Fedora Release Engineering - 7.50-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 16 2010 Tom "spot" Callaway - 7.50-1 - update to 7.50 - fix ode NAN issue * Mon Aug 2 2010 Tom "spot" Callaway - 7.45-1 - update to 7.45 * Thu Jul 15 2010 Tom "spot" Callaway - 7.40-2 - add hard dependency on openal-soft (bz 597684) * Thu Jul 15 2010 Tom "spot" Callaway - 7.40-1 - update to 7.40 * Tue Apr 6 2010 Tom "spot" Callaway - 7.33-2 - fix security issues identified in bz 577810 - By supplying various invalid parameters to the download command, it is possible to cause a DoS condition by causing the server to crash. A path ending in . or / will crash on Linux. Supplying a negative offset will cause a crash on all platforms. - Fix buffer overflow identified in R1Q2 client code * Fri Jan 15 2010 Tom "spot" Callaway - 7.33-1 - update to 7.33 * Sat Nov 7 2009 Hans de Goede - 7.32-2 - dlopen openal.so.x, not openal.so.x.y. this fixes a crash on startup when the openal minor version has changed - fix deprecation warning with latest libXxf86dga-devel * Mon Nov 2 2009 Tom "spot" Callaway - 7.32-1 - update to 7.32 - fix CVE-2009-3637 (bugzilla 530514) * Wed Aug 12 2009 Tom "spot" Callaway - 7.30-2 - fix dlopen code to find proper openal library - use openal-soft instead of old openal * Thu Jul 30 2009 Tom "spot" Callaway - 7.30-1 - update to 7.30 * Fri Jul 24 2009 Fedora Release Engineering - 7.21-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 7.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jan 30 2009 Tom "spot" Callaway - 7.21-1 - update to 7.21 - apply Paul's patch to print the search paths * Wed Oct 29 2008 Tom "spot" Callaway - 7.20-5 - use /bin/bash for the scripts due to the export LD_LIBRARY_PATH * Sun Oct 26 2008 Tom "spot" Callaway - 7.20-4 - re-enable "don't search data path" patch * Sun Oct 26 2008 Tom "spot" Callaway - 7.20-3 - use LD_LIBRARY_PATH in scripts * Sat Oct 25 2008 Tom "spot" Callaway - 7.20-2 - drop old "don't search data path" patch - call alienarena-wrapper in .desktop file * Mon Oct 20 2008 Tom "spot" Callaway - 7.20-1 - sync up with Paul Bredbury's spec file - update to 7.20 * Fri Sep 26 2008 Tom "spot" Callaway - 7.10-2 - drop fhs patch, use Makefile DATADIR options instead * Wed Jul 2 2008 Tom "spot" Callaway - 7.10-1 - update to 7.10 (2008) * Tue Feb 19 2008 Fedora Release Engineering - 6.10-6 - Autorebuild for GCC 4.3 * Wed Nov 28 2007 Tom "spot" Callaway 6.10-5 - generic optflags only * Tue Nov 27 2007 Tom "spot" Callaway 6.10-4 - lots of cleanups from review * Fri Nov 16 2007 Tom "spot" Callaway 6.10-3 - include legal clarification text for ace bot code - simplify description * Thu Nov 8 2007 Tom "spot" Callaway 6.10-2 - make shell script launcher to get game working (run alienarena, not crx.sdl directly) * Thu Nov 1 2007 Tom "spot" Callaway 6.10-1 - Initial package for Fedora