1 |
Summary: Multiplayer retro sci-fi deathmatch game |
2 |
Name: alienarena |
3 |
Version: 7.60 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv2+ |
6 |
Group: Games/Arcade |
7 |
# Subversion: https://svn.icculus.org/alienarena/trunk/?sortby=date |
8 |
# Upstream seems too inept to provide a simple source only tarball, so we use svn. |
9 |
# svn export svn://svn.icculus.org/alienarena/tags/7.60/ alienarena-7.60/ |
10 |
# These windows files are useless to us. |
11 |
# rm -rf alienarena-7.60/*.exe alienarena-7.60/*.dll alienarena-7.60/Tools/aaradiant.exe |
12 |
# rm -rf alienarena-7.60/Tools/utils3/*.exe |
13 |
# These bundled zips are also pretty useless. |
14 |
# rm -rf alienarena-7.60/lib_zipfiles |
15 |
# We don't want the bundled ode code. |
16 |
# rm -rf alienarena-7.60/source/unix/ode/ |
17 |
# We don't want most of the tools |
18 |
# rm -rf alienarena-7.60/Tools/{FUSE,galaxy,"Map compiling tools",Models,prefabs,RubyBrowser,statsgen,utils3,web,WinInstall} |
19 |
# arena/ botinfo/ data1/ live in the alienarena-data package |
20 |
# mkdir alienarena-data-20120706 |
21 |
# mv alienarena-7.60/arena/ alienarena-7.60/botinfo/ alienarena-7.60/data1/ alienarena-data-20120706/ |
22 |
# rm -f alienarena-data-20120706/{arena,data1}/game.so |
23 |
# This data tarball is used for the alienarena-data package |
24 |
# tar -cvJf alienarena-data-20120706.tar.xz alienarena-data-20120706 |
25 |
# This source tarball is used for the alienarena package |
26 |
# tar -cvJf alienarena-7.60.tar.xz alienarena-7.60 |
27 |
Source0: alienarena-%{version}.tar.xz |
28 |
Source1: alienarena.desktop |
29 |
Source2: GPL.acebot.txt |
30 |
Source3: alienarena.png |
31 |
Patch3: alienarena-7.45-no-qglBlitFramebufferEXT.patch |
32 |
Patch4: alienarena-7.60-nodata.patch |
33 |
URL: http://red.planetarena.org/ |
34 |
BuildRequires: libxext-devel |
35 |
BuildRequires: libxxf86vm-devel |
36 |
BuildRequires: libjpeg-devel |
37 |
BuildRequires: GL-devel |
38 |
BuildRequires: libmesaglu-devel |
39 |
BuildRequires: curl-devel |
40 |
BuildRequires: libpng-devel |
41 |
BuildRequires: libvorbis-devel |
42 |
BuildRequires: openal-soft-devel |
43 |
BuildRequires: ode-devel |
44 |
BuildRequires: freetype2-devel |
45 |
BuildRequires: desktop-file-utils |
46 |
Requires: alienarena-data = 20120706 |
47 |
Requires: desktop-file-utils >= 0.9, glxinfo |
48 |
Requires: openal%{?_isa} |
49 |
Requires: opengl-games-utils |
50 |
|
51 |
%description |
52 |
Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes |
53 |
of play, loads of mutators, built-in bots, multiple player characters and weapons |
54 |
(with alt-fire modes). |
55 |
|
56 |
|
57 |
%package server |
58 |
Group: Games/Arcade |
59 |
Summary: Dedicated server for alienarena, the FPS game |
60 |
Requires: alienarena-data = 20120106 |
61 |
|
62 |
|
63 |
%description server |
64 |
Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes |
65 |
of play, loads of mutators, built-in bots, multiple player characters and weapons |
66 |
(with alt-fire modes). |
67 |
|
68 |
This is the dedicated server. |
69 |
|
70 |
|
71 |
%prep |
72 |
%setup -q |
73 |
|
74 |
%patch3 -p1 -b .no-qglBlitFramebufferEXT |
75 |
%patch4 -p1 -b .nodata |
76 |
|
77 |
# Copy license clarification for acebot |
78 |
cp -p %{SOURCE2} . |
79 |
|
80 |
# clean up prebuilt binary files |
81 |
[[ -e alienarena ]] && rm crded alienarena alienarena.sdl {arena,data1}/game.so |
82 |
|
83 |
# clean up end-line encoding |
84 |
[[ -e docs/README.txt ]] && %{__sed} -i 's/\r//' docs/README.txt |
85 |
|
86 |
# So, AlienArena now "uses" openal by dlopening the library, which is hardcoded to |
87 |
# "libopenal.so". That file only lives in openal-devel, so we need to adjust the hardcoding. |
88 |
LIBOPENAL=`ls %{_libdir}/libopenal.so.? | cut -d "/" -f 4` |
89 |
sed -i "s|\"libopenal.so\"|\"$LIBOPENAL\"|g" source/unix/qal_unix.c |
90 |
|
91 |
%build |
92 |
export PTHREAD_LIBS="-lpthread" |
93 |
export PTHREAD_CFLAGS="-pthread" |
94 |
%configure2_5x --with-system-libode --without-xf86dga |
95 |
%make |
96 |
|
97 |
%install |
98 |
%makeinstall_std |
99 |
|
100 |
%{__mkdir_p} %{buildroot}%{_datadir}/applications |
101 |
desktop-file-install --vendor "%{_real_vendor}" \ |
102 |
--dir %{buildroot}%{_datadir}/applications \ |
103 |
%{SOURCE1} |
104 |
|
105 |
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ |
106 |
install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png |
107 |
|
108 |
# Fedora's little opengl checker |
109 |
ln -s opengl-game-wrapper.sh %{buildroot}/%{_bindir}/%{name}-wrapper |
110 |
ln -s %{name}-ded %{buildroot}/%{_bindir}/%{name}-server |
111 |
|
112 |
%files |
113 |
%defattr(-,root,root,-) |
114 |
%doc GPL.acebot.txt |
115 |
%{_bindir}/%{name} |
116 |
%{_bindir}/%{name}-wrapper |
117 |
%{_datadir}/applications/*.desktop |
118 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png |
119 |
%{_iconsdir}/alienarena.png |
120 |
|
121 |
%files server |
122 |
%defattr(-,root,root,-) |
123 |
%{_bindir}/%{name}-ded |
124 |
%{_bindir}/%{name}-server |