]>
Commit | Line | Data |
---|---|---|
ab4b7d27 JB |
1 | # TODO: |
2 | # - FHS | |
3 | # - build from sources; we can't distribute GPLed binaries alone anyway | |
311df78d | 4 | Summary: OpenArena - a completely free game for the foss Quake III engine |
4be26308 | 5 | Summary(pl.UTF-8): OpenArena - darmowa gra wykorzystująca silnik Quake III |
311df78d | 6 | Name: OpenArena |
086b9bba | 7 | Version: 0.8.1 |
311df78d PS |
8 | Release: 0.1 |
9 | License: GPL v2 | |
10 | Group: Applications/Games | |
4be26308 | 11 | Source0: http://download.tuxfamily.org/openarena/rel/%(echo %{version} | tr -d .)/oa%(echo %{version} | tr -d .).zip |
086b9bba | 12 | # Source0-md5: 49006bcb02b4e8ea3d06749e8f4e4887 |
311df78d PS |
13 | URL: http://openarena.ws/ |
14 | BuildRequires: unzip | |
ab4b7d27 | 15 | # applies to this binary distribution only |
086b9bba | 16 | ExclusiveArch: %{ix86} %{x8664} |
311df78d PS |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
311df78d PS |
19 | %description |
20 | OpenArena for Linux. | |
21 | ||
4be26308 JB |
22 | %description -l pl.UTF-8 |
23 | OpenArena dla Linuksa. | |
24 | ||
311df78d PS |
25 | %prep |
26 | %define __unzip %{_bindir}/unzip -o | |
4be26308 | 27 | %setup -q -n openarena-%{version} |
311df78d | 28 | |
e091f9cd | 29 | cat << 'EOF' > openarena |
311df78d | 30 | #/bin/sh |
e091f9cd | 31 | exec /opt/OpenArena/openarena |
311df78d PS |
32 | EOF |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
e091f9cd | 36 | install -d $RPM_BUILD_ROOT{/opt/OpenArena/{baseoa,missionpack},%{_bindir}} |
311df78d PS |
37 | |
38 | install baseoa/*.pk3 $RPM_BUILD_ROOT/opt/OpenArena/baseoa | |
e091f9cd PS |
39 | install missionpack/*.pk3 $RPM_BUILD_ROOT/opt/OpenArena/missionpack |
40 | install openarena.%{_target_base_arch} $RPM_BUILD_ROOT/opt/OpenArena/openarena | |
41 | install openarena $RPM_BUILD_ROOT%{_bindir} | |
311df78d PS |
42 | |
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
e091f9cd PS |
48 | %doc CHANGES CREDITS README |
49 | %attr(755,root,root) %{_bindir}/openarena | |
311df78d | 50 | %dir /opt/OpenArena |
e091f9cd | 51 | %attr(755,root,root) /opt/OpenArena/openarena |
311df78d | 52 | /opt/OpenArena/baseoa |
e091f9cd | 53 | /opt/OpenArena/missionpack |