summaryrefslogtreecommitdiff
path: root/alienarena2007.spec
blob: 22b02d5e357266a65e76c9e5f290c7863aa492e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%define		relyear		2007
%define		dateversion	20070613
#
Summary:	Alien Arena - freeware online deathmatch FPS game
Summary(pl.UTF-8):Alien Arena
Name:		alienarena%{relyear}
Version:	6.05
Release:	0.1
License:	GPL
Group:		X11/Applications/Games
Source0:	http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/%{name}-%{dateversion}-linux.zip
# Source0-md5:	08c20b29d0ed529769cab4952e8cfe94
URL:		http://red.planetarena.org/
BuildRequires:	Mesa-libGLU-devel
BuildRequires:	libjpeg-devel
BuildRequires:	SDL-devel
BuildRequires:	rpmbuild(macros) >= 1.228
BuildRequires:	xorg-lib-libX11-devel
BuildRequires:	xorg-lib-libXext-devel
Requires(post,preun):	/sbin/chkconfig
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
ALIEN ARENA is a standalone 3D first person online deathmatch shooter
crafted from the original source code of Quake II and Quake III,
released by id Software under the GPL license. With features including
32 bit graphics, new particle engine and effects, light blooms,
reflective water, hi resolution textures and skins, hi poly models,
stain maps, ALIEN ARENA pushes the envelope of graphical beauty
rivaling today's top games.

The game features 37 levels, which can be played online against other
players, or against the built in CodeRED bots.

Alien Arena offers CTF, AOA(All Out Assault) mode, in which players
can climb into vehicles to do battle, Deathball, and Team Core
Assault. Simply go into the multiplayer menu to start a server, change
the game rules, and choose a map to play on. You can also select from
five different mutators(instagib, rocket arena, excessive, low grav,
regen, and vampire) to further customize your game experience.

%package server
Summary:	Alien Arena - server
Summary(pl.UTF-8):Alien Arena - serwer
Group:		X11/Applications/Games

%description server
The dedicated server for Alien Arena.

%package data
Summary:	Alien Arena - the data, botinfo, and arena files
Group:		X11/Applications/Games

%description data
This package installs the data, botinfo, and arena files needed to run
Alien Arena.

%prep
%setup -q -n %{name}
rm -f ../GH3D.txt ../GamersHell.url

# undos the source
find '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'

%build
%{__make} \
	CFLAGS="%{rpmcflags} -ldl" \
	LDFLAGS="%{rpmldflags}"

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post server
/sbin/chkconfig --add %{name}
%service %{name} restart

%preun server
if [ "$1" = "0" ]; then
	%service -q %{name} stop
	/sbin/chkconfig --del %{name}
fi

%files
%defattr(644,root,root,755)
%doc changelog README
%lang(du) %doc docs/AA Dutch.txt
%lang(fr) %doc docs/AA French.txt
%lang(de) %doc docs/AA German.txt
%lang(gr) %doc docs/AA Greek.txt
%lang(hu) %doc docs/AA Hungarian.txt
%lang(it) %doc docs/AA Italian.txt
%lang(pl) %doc docs/AA Polish.txt
%lang(po) %doc docs/AA Portuguese.txt
%lang(ru) %doc docs/AA Russian.txt
%lang(es) %doc docs/AA_ES.txt
%attr(755,root,root) %{_bindir}/alien-arena
%{_desktopdir}/alien-arena.desktop
%{_pixmapsdir}/alien-arena.xpm

%files data
%defattr(644,root,root,755)

%files server
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
%attr(755,root,root) %{_bindir}/alien-arena-server
alien-arena/crded
alien-arena/kill-runaway-crded
alien-arena/launch-server
alien-arena/rcon
alien-arena/svstat
%{_mandir}/man6/alien-arena-server.6.*