%define svn 5663 Name: alienarena Summary: Multiplayer retro sci-fi deathmatch game Version: 7.71.1 Release: %mkrel 0.svn%{svn}.2 License: GPLv2+ Group: Games/Shooter URL: http://red.planetarena.org/ # Been so long since a release, we need to use the svn code # svn co svn://svn.icculus.org/alienarena/trunk # cd trunk # svn update -r %%{svn} # # remove useless files to gain xz compressed 60MB # rm -rf Tools/ *.dll *.exe vs2010/ lib_zipfiles/ # cd .. # mv trunk alienarena-7.71.0-svn%%{svn} # tar --exclude-vcs -cJf alienarena-7.71.0-svn%%{svn}.tar.xz alienarena-7.71.0-svn%%{svn} Source0: alienarena-7.71.1-svn%{svn}.tar.xz # Source0: http://red.planetarena.org/files/%%{name}-%%{version}-linux20130827.tar.gz Source1: %{name}.desktop Source2: GPL.acebot.txt Patch3: alienarena-7.66-no-qglBlitFramebufferEXT.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 BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xxf86vm) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(freetype2) BuildRequires: desktop-file-utils Requires: %{name}-data = 1:%{version} Requires: desktop-file-utils >= 0.9 Requires: glxinfo Requires: openal Requires: opengl-games-utils %description Alien Arena : Mercury Edition is an online deathmatch game with over 30 levels, seven modes of play, loads of mutators, built-in bots, multiple player characters and weapons (with alt-fire modes). %package server Group: Games/Shooter Summary: Dedicated server for alienarena, the FPS game Requires: %{name}-data = 1:%{version} %description server Alien Arena : Mercury Edition is an online deathmatch game with over 30 levels, seven modes of play, loads of mutators, built-in bots, multiple player characters and weapons (with alt-fire modes). This is the dedicated server. %package data Group: Games/Shooter Summary: Data files for Alien Arena 2011 Epoch: 1 BuildArch: noarch %description data This is the game data (audio, maps, etc) for Alien Arena. %prep %setup -q -n %{name}-%{version}-svn%{svn} %autopatch -p1 # 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 autoreconf -vfi export PTHREAD_LIBS="-lpthread" export PTHREAD_CFLAGS="-pthread" %global optflags %{optflags} -fcommon %configure %make_build %install %make_install %{__mkdir_p} %{buildroot}%{_datadir}/applications desktop-file-install --vendor "" \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE1} mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/ mv %{buildroot}%{_datadir}/icons/%{name}/%{name}.png \ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png # Fedora's little opengl checker ln -s opengl-game-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper ln -s %{name}-ded %{buildroot}%{_bindir}/%{name}-server rm -f %{buildroot}%{_docdir}/%{name}/INSTALL %files %doc GPL.acebot.txt README docs/README.txt docs/license.txt COPYING GPLv2 NEWS %{_bindir}/%{name} %{_bindir}/%{name}-wrapper %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/48x48/apps/%{name}.png %files server %{_bindir}/%{name}-ded %{_bindir}/%{name}-server %files data %{_datadir}/%{name}/ %changelog * Sat Aug 22 2020 tv <tv> 7.71.1-0.svn5663.2.mga8 + Revision: 1617828 - Fix build with gcc10 - new snapshot - fix building with gcc-10 * Wed Feb 26 2020 daviddavid <daviddavid> 7.71.0-0.svn5648.2.mga8 + Revision: 1550769 - do not package INSTALL doc file + umeabot <umeabot> - Mageia 8 Mass Rebuild + wally <wally> - replace deprecated %%configure2_5x * Tue Mar 26 2019 zezinho <zezinho> 7.71.0-0.svn5648.1.mga7 + Revision: 1380408 - new svn5648 to use bundled ode - ode is no more bundled in the source - new version Mercury Edition * Fri Sep 21 2018 umeabot <umeabot> 7.66-10.mga7 + Revision: 1294282 - Mageia 7 Mass Rebuild * Sun Oct 15 2017 cjw <cjw> 7.66-9.mga7 + Revision: 1171953 - patch5: fix build with gcc 7 * Thu May 25 2017 akien <akien> 7.66-8.mga6 + Revision: 1104622 - Rebuild for ode 0.15.2 * Thu Feb 09 2017 pterjan <pterjan> 7.66-7.mga6 + Revision: 1085225 - Rebuild to fix corrupted src.rpm * Sun Nov 13 2016 akien <akien> 7.66-6.mga6 + Revision: 1066995 - Rebuild for new libode * Sat Feb 13 2016 umeabot <umeabot> 7.66-5.mga6 + Revision: 959484 - Mageia 6 Mass Rebuild * Wed Oct 21 2015 tv <tv> 7.66-4.mga6 + Revision: 893295 - fix build: package more docs * Sat Dec 27 2014 akien <akien> 7.66-4.mga5 + Revision: 806578 - Rebuild for ODE * Wed Oct 15 2014 umeabot <umeabot> 7.66-3.mga5 + Revision: 749385 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 7.66-2.mga5 + Revision: 677735 - Mageia 5 Mass Rebuild * Thu Mar 06 2014 tv <tv> 7.66-1.mga5 + Revision: 600450 - patch 4: fix "format not a string literal" - rediff patch - new release * Sat Oct 19 2013 umeabot <umeabot> 7.65-3.mga4 + Revision: 533604 - Mageia 4 Mass Rebuild * Sun Sep 01 2013 fwang <fwang> 7.65-2.mga4 + Revision: 474063 - rebuild for new ode * Mon Jun 03 2013 zezinho <zezinho> 7.65-1.mga4 + Revision: 436717 - new version - data merged in the same source rpm like fedora * Fri Jan 11 2013 umeabot <umeabot> 7.60-4.mga3 + Revision: 345507 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 09 2013 malo <malo> 7.60-3.mga3 + Revision: 343764 - updated RPM groups * Sat Sep 08 2012 dams <dams> 7.60-2.mga3 + Revision: 289671 - fix data_version require by adding a define * Thu Aug 23 2012 tv <tv> 7.60-1.mga3 + Revision: 283327 - update description --without-xf86dga is now the default - adapt to s/crx/alienarena/ rename - patch 4: disable more stuff for seperated data - rediff nodata patch - new release * Tue Jan 10 2012 zezinho <zezinho> 7.53-1.mga2 + Revision: 194798 - new version + juancho <juancho> - Removed rm -fr %%{buildroot} calls on %%install and %%clean * Mon Oct 31 2011 fwang <fwang> 7.52-2.mga2 + Revision: 160298 - fix requires on data package * Mon Oct 17 2011 tv <tv> 7.52-1.mga2 + Revision: 155918 - new release * Sun May 08 2011 ahmad <ahmad> 7.51-2.mga1 + Revision: 95992 - Require opengl-games-utils for the -wrapper to work * Fri May 06 2011 tv <tv> 7.51-1.mga1 + Revision: 95342 - new release - drop patch5 (merged upstream) - build without xf86dga - build with system ode library - drop useless BR on X11-devel - BR freetype2-devel instead of freetype-devel - one BR per line * Thu Apr 28 2011 wally <wally> 7.50-4.mga1 + Revision: 92847 - fix desktop file name - use configure2_5x and makeinstall_std macros * Sun Mar 06 2011 ahmad <ahmad> 7.50-3.mga1 + Revision: 65168 + rebuild (emptylog) * Sat Mar 05 2011 tv <tv> 7.50-1.mga1 + Revision: 64890 - fix BR GL-devel - imported package alienarena