%define svn 5722 Name: alienarena Summary: Multiplayer retro sci-fi deathmatch game Version: 7.71.4 Release: %mkrel 1 License: GPLv2+ Group: Games/Shooter URL: http://red.planetarena.org/ # Been so long since a release, we need to use the svn code # svn export svn://svn.icculus.org/alienarena/trunk alienarena-7.71.4 # cd alienarena-7.71.4 # # # remove useless files to gain xz compressed 60MB # rm -rf Tools/ *.dll *.exe vs2010/ lib_zipfiles/ # cd .. # tar -czvf alienarena-7.71.4-svn5722.tar.gz alienarena-7.71.4 Source0: alienarena-%{version}-svn%{svn}.tar.gz Source1: alien-arena.desktop Source2: GPL.acebot.txt Patch3: alienarena-7.66-no-qglBlitFramebufferEXT.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 %autosetup -p1 -n %{name}-%{version} # 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" %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/256x256/apps/ mv %{buildroot}%{_datadir}/icons/%{name}/alien-arena.png \ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/alien-arena.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,alien-arena.desktop} %files %doc GPL.acebot.txt README docs/README.txt docs/license.txt COPYING GPLv2 NEWS %{_bindir}/%{name} %{_bindir}/%{name}-wrapper %{_datadir}/applications/alien-arena.desktop %{_datadir}/icons/hicolor/*/apps/alien-arena.png %files server %{_bindir}/%{name}-ded %{_bindir}/%{name}-server %files data %{_datadir}/%{name}/