1 |
Summary: Multiplayer retro sci-fi deathmatch game |
2 |
Name: alienarena |
3 |
Version: 7.51 |
4 |
Release: %mkrel 2 |
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.51/ alienarena-7.51/ |
10 |
# These windows files are useless to us. |
11 |
# rm -rf alienarena-7.51/*.exe alienarena-7.51/*.dll alienarena-7.51/Tools/aaradiant.exe |
12 |
# These bundled zips are also pretty useless. |
13 |
# rm -rf alienarena-7.51/lib_zipfiles/ |
14 |
# We don't want the bundled ode code. |
15 |
# rm -rf alienarena-7.51/source/unix/ode/ |
16 |
# arena/ botinfo/ data1/ live in the alienarena-data package |
17 |
# mkdir alienarena-data-20110323 |
18 |
# mv alienarena-7.51/arena/ alienarena-7.51/botinfo/ alienarena-7.51/data1/ alienarena-data-20110323/ |
19 |
# rm -f alienarena-data-20110323/{arena,data1}/game.so |
20 |
# This data tarball is used for the alienarena-data package |
21 |
# tar -cvJf alienarena-data-20110323.tar.xz alienarena-data-20101216 |
22 |
# This source tarball is used for the alienarena package |
23 |
# tar -cvjf alienarena-7.51.tar.bz2 alienarena-7.51 |
24 |
Source0: alienarena-%{version}.tar.bz2 |
25 |
Source1: alienarena.desktop |
26 |
Source2: GPL.acebot.txt |
27 |
Source3: alienarena.png |
28 |
Patch3: alienarena-7.45-no-qglBlitFramebufferEXT.patch |
29 |
Patch4: alienarena-7.51-nodata.patch |
30 |
# Ragdolls: added a NaN check which seems to solve the ODE assertion error problem |
31 |
# http://svn.icculus.org/alienarena?view=rev&revision=2286 |
32 |
URL: http://red.planetarena.org/ |
33 |
BuildRequires: libxext-devel |
34 |
BuildRequires: libxxf86vm-devel |
35 |
BuildRequires: libjpeg-devel |
36 |
BuildRequires: GL-devel |
37 |
BuildRequires: libmesaglu-devel |
38 |
BuildRequires: curl-devel |
39 |
BuildRequires: libpng-devel |
40 |
BuildRequires: libvorbis-devel |
41 |
BuildRequires: openal-soft-devel |
42 |
BuildRequires: ode-devel |
43 |
BuildRequires: freetype2-devel |
44 |
BuildRequires: desktop-file-utils |
45 |
Requires: alienarena-data = 20110323 |
46 |
Requires: desktop-file-utils >= 0.9, glxinfo |
47 |
Requires: openal%{?_isa} |
48 |
Requires: opengl-games-utils |
49 |
|
50 |
%description |
51 |
Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes |
52 |
of play, loads of mutators, built-in bots, multiple player characters and weapons |
53 |
(with alt-fire modes). |
54 |
|
55 |
|
56 |
%package server |
57 |
Group: Games/Arcade |
58 |
Summary: Dedicated server for alienarena, the FPS game |
59 |
Requires: alienarena-data = 20110323 |
60 |
|
61 |
|
62 |
%description server |
63 |
Alien Arena 2011 is an online deathmatch game with over 30 levels, seven modes |
64 |
of play, loads of mutators, built-in bots, multiple player characters and weapons |
65 |
(with alt-fire modes). |
66 |
|
67 |
This is the dedicated server. |
68 |
|
69 |
|
70 |
%prep |
71 |
%setup -q |
72 |
|
73 |
%patch3 -p1 -b .no-qglBlitFramebufferEXT |
74 |
%patch4 -p1 -b .nodata |
75 |
|
76 |
# Copy license clarification for acebot |
77 |
cp -p %{SOURCE2} . |
78 |
|
79 |
# clean up prebuilt binary files |
80 |
[[ -e crx ]] && rm crded crx crx.sdl {arena,data1}/game.so |
81 |
|
82 |
# clean up end-line encoding |
83 |
[[ -e docs/README.txt ]] && %{__sed} -i 's/\r//' docs/README.txt |
84 |
|
85 |
# So, AlienArena now "uses" openal by dlopening the library, which is hardcoded to |
86 |
# "libopenal.so". That file only lives in openal-devel, so we need to adjust the hardcoding. |
87 |
LIBOPENAL=`ls %{_libdir}/libopenal.so.? | cut -d "/" -f 4` |
88 |
sed -i "s|\"libopenal.so\"|\"$LIBOPENAL\"|g" source/unix/qal_unix.c |
89 |
|
90 |
%build |
91 |
export PTHREAD_LIBS="-lpthread" |
92 |
export PTHREAD_CFLAGS="-pthread" |
93 |
%configure2_5x --with-system-libode --without-xf86dga |
94 |
%make |
95 |
|
96 |
%install |
97 |
rm -fr %{buildroot} |
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 crx %{buildroot}/%{_bindir}/%{name} |
111 |
ln -s crx-ded %{buildroot}/%{_bindir}/%{name}-server |
112 |
|
113 |
%clean |
114 |
rm -fr %{buildroot} |
115 |
|
116 |
%files |
117 |
%defattr(-,root,root,-) |
118 |
%doc GPL.acebot.txt |
119 |
%{_bindir}/crx |
120 |
%{_bindir}/%{name} |
121 |
%{_bindir}/%{name}-wrapper |
122 |
%{_datadir}/applications/*.desktop |
123 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png |
124 |
%{_iconsdir}/alienarena.png |
125 |
|
126 |
%files server |
127 |
%defattr(-,root,root,-) |
128 |
%{_bindir}/crx-ded |
129 |
%{_bindir}/%{name}-server |