]>
Commit | Line | Data |
---|---|---|
311df78d PS |
1 | %define _base_ver 0.7.0 |
2 | %define _patch_ver 0.7.1 | |
3 | Summary: OpenArena - a completely free game for the foss Quake III engine | |
4 | Name: OpenArena | |
5 | Version: %{_patch_ver} | |
6 | Release: 0.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/Games | |
9 | # precompiled archives can be downloaded from website. | |
10 | Source0: oa%(echo %{_base_ver} | sed -e 's:\.::g').zip | |
11 | # Source0-md5: 739548bfc5dc1d129d20c0f67d54df48 | |
12 | Source1: oa%(echo %{_patch_ver} | sed -e 's:\.::g')-patch.zip | |
13 | # Source1-md5: 5fa31998009f8241ad3ded93eb81e701 | |
14 | URL: http://openarena.ws/ | |
15 | BuildRequires: unzip | |
16 | Requires: OpenGL | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
20 | ||
21 | %ifarch %{x8664} | |
eded03c3 ER |
22 | # we provide *()(64bit) symbols, so skip hardcoded reqs. |
23 | %define _noautoreqdep libGL.so.1 libGLU.so.1 libSDL-1.2.so.0 libogg.so.0 libopenal.so.0 libvorbis.so.0 libvorbisfile.so.3 | |
311df78d PS |
24 | %endif |
25 | ||
26 | %description | |
27 | OpenArena for Linux. | |
28 | ||
29 | %prep | |
30 | %define __unzip %{_bindir}/unzip -o | |
31 | %setup -q -n openarena-%{_base_ver} -b1 | |
32 | ||
eded03c3 | 33 | cat << 'EOF' > ioquake3 |
311df78d | 34 | #/bin/sh |
eded03c3 | 35 | exec /opt/OpenArena/ioquake3 |
311df78d PS |
36 | EOF |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{/opt/OpenArena/baseoa,%{_bindir}} | |
41 | ||
42 | install baseoa/*.pk3 $RPM_BUILD_ROOT/opt/OpenArena/baseoa | |
43 | install ioquake3-smp.%{_target_base_arch} $RPM_BUILD_ROOT/opt/OpenArena/ioquake3 | |
44 | install ioquake3 $RPM_BUILD_ROOT/%{_bindir} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc CHANGES CREDITS | |
52 | %attr(755,root,root) %{_bindir}/ioquake3 | |
53 | %dir /opt/OpenArena | |
54 | %attr(755,root,root) /opt/OpenArena/ioquake3 | |
55 | /opt/OpenArena/baseoa |