]>
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} | |
22 | # we provides *()(64bit) symbols, so skip harcoded reqs. | |
23 | %define _noautoreqdep libSDL-1.2.so.0 libogg.so.0 libopenal.so.0 libvorbis.so.0 libvorbisfile.so.3 | |
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 | ||
33 | %build | |
34 | cat << EOF > ioquake3 | |
35 | #/bin/sh | |
36 | ||
37 | /opt/OpenArena/ioquake3 | |
38 | EOF | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT{/opt/OpenArena/baseoa,%{_bindir}} | |
43 | ||
44 | install baseoa/*.pk3 $RPM_BUILD_ROOT/opt/OpenArena/baseoa | |
45 | install ioquake3-smp.%{_target_base_arch} $RPM_BUILD_ROOT/opt/OpenArena/ioquake3 | |
46 | install ioquake3 $RPM_BUILD_ROOT/%{_bindir} | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc CHANGES CREDITS | |
54 | %attr(755,root,root) %{_bindir}/ioquake3 | |
55 | %dir /opt/OpenArena | |
56 | %attr(755,root,root) /opt/OpenArena/ioquake3 | |
57 | /opt/OpenArena/baseoa |