]>
Commit | Line | Data |
---|---|---|
85a1d0f5 MWP |
1 | %define relyear 2007 |
2 | %define dateversion 20070613 | |
3 | # | |
4 | Summary: Alien Arena - freeware online deathmatch FPS game | |
5 | Summary(pl.UTF-8):Alien Arena | |
6 | Name: alienarena%{relyear} | |
7 | Version: 6.05 | |
8 | Release: 0.1 | |
9 | License: GPL | |
10 | Group: X11/Applications/Games | |
11 | Source0: http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/%{name}-%{dateversion}-linux.zip | |
12 | # Source0-md5: 08c20b29d0ed529769cab4952e8cfe94 | |
13 | URL: http://red.planetarena.org/ | |
14 | BuildRequires: Mesa-libGLU-devel | |
15 | BuildRequires: libjpeg-devel | |
16 | BuildRequires: SDL-devel | |
17 | BuildRequires: rpmbuild(macros) >= 1.228 | |
18 | BuildRequires: xorg-lib-libX11-devel | |
19 | BuildRequires: xorg-lib-libXext-devel | |
20 | Requires(post,preun): /sbin/chkconfig | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | ALIEN ARENA is a standalone 3D first person online deathmatch shooter | |
25 | crafted from the original source code of Quake II and Quake III, | |
26 | released by id Software under the GPL license. With features including | |
27 | 32 bit graphics, new particle engine and effects, light blooms, | |
28 | reflective water, hi resolution textures and skins, hi poly models, | |
29 | stain maps, ALIEN ARENA pushes the envelope of graphical beauty | |
30 | rivaling today's top games. | |
31 | ||
32 | The game features 37 levels, which can be played online against other | |
33 | players, or against the built in CodeRED bots. | |
34 | ||
35 | Alien Arena offers CTF, AOA(All Out Assault) mode, in which players | |
36 | can climb into vehicles to do battle, Deathball, and Team Core | |
37 | Assault. Simply go into the multiplayer menu to start a server, change | |
38 | the game rules, and choose a map to play on. You can also select from | |
39 | five different mutators(instagib, rocket arena, excessive, low grav, | |
40 | regen, and vampire) to further customize your game experience. | |
41 | ||
42 | %package server | |
43 | Summary: Alien Arena - server | |
44 | Summary(pl.UTF-8):Alien Arena - serwer | |
45 | Group: X11/Applications/Games | |
46 | ||
47 | %description server | |
48 | The dedicated server for Alien Arena. | |
49 | ||
50 | %package data | |
51 | Summary: Alien Arena - the data, botinfo, and arena files | |
52 | Group: X11/Applications/Games | |
53 | ||
54 | %description data | |
55 | This package installs the data, botinfo, and arena files needed to run | |
56 | Alien Arena. | |
57 | ||
58 | %prep | |
59 | %setup -q -n %{name} | |
60 | rm -f ../GH3D.txt ../GamersHell.url | |
61 | ||
1289d1af MWP |
62 | for file in lst cfg txt html lng h c ; do |
63 | find ./ -noleaf -type f -name \*.$file -exec dos2unix '{}' \; | |
64 | done | |
85a1d0f5 MWP |
65 | |
66 | %build | |
67 | %{__make} \ | |
68 | CFLAGS="%{rpmcflags} -ldl" \ | |
69 | LDFLAGS="%{rpmldflags}" | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post server | |
81 | /sbin/chkconfig --add %{name} | |
82 | %service %{name} restart | |
83 | ||
84 | %preun server | |
85 | if [ "$1" = "0" ]; then | |
86 | %service -q %{name} stop | |
87 | /sbin/chkconfig --del %{name} | |
88 | fi | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc changelog README | |
93 | %lang(du) %doc docs/AA Dutch.txt | |
94 | %lang(fr) %doc docs/AA French.txt | |
95 | %lang(de) %doc docs/AA German.txt | |
96 | %lang(gr) %doc docs/AA Greek.txt | |
97 | %lang(hu) %doc docs/AA Hungarian.txt | |
98 | %lang(it) %doc docs/AA Italian.txt | |
99 | %lang(pl) %doc docs/AA Polish.txt | |
100 | %lang(po) %doc docs/AA Portuguese.txt | |
101 | %lang(ru) %doc docs/AA Russian.txt | |
102 | %lang(es) %doc docs/AA_ES.txt | |
103 | %attr(755,root,root) %{_bindir}/alien-arena | |
104 | %{_desktopdir}/alien-arena.desktop | |
105 | %{_pixmapsdir}/alien-arena.xpm | |
106 | ||
107 | %files data | |
108 | %defattr(644,root,root,755) | |
109 | ||
110 | %files server | |
111 | %defattr(644,root,root,755) | |
112 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
113 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
114 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
115 | %attr(755,root,root) %{_bindir}/alien-arena-server | |
116 | alien-arena/crded | |
117 | alien-arena/kill-runaway-crded | |
118 | alien-arena/launch-server | |
119 | alien-arena/rcon | |
120 | alien-arena/svstat | |
121 | %{_mandir}/man6/alien-arena-server.6.* |