summaryrefslogtreecommitdiff
path: root/airstrike.spec
blob: f687dd84b14a5031e3720f0dd3e61ce26eb9f455 (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
Summary:	Airstrike
Summary(pl):	Airstrike - Plastikowy Czerwony Baron
Name:		airstrike
Version:	pre6a
Release:	1
License:	GPL
Group:		Applications/Games
Source0:	http://icculus.org/airstrike/%{name}-%{version}-src.tar.gz
# Source0-md5:	af7367f9223309fbcf9759e04028394e
Patch0:		%{name}-pld.patch
Patch1:		%{name}-opt.patch
URL:		http://icculus.org/airstrike/
BuildRequires:	SDL-devel >= 1.2
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Airstrike is a 2d dogfight game in the tradition of the Intellivision
and Amiga games 'Biplanes' and 'BIP'. It features a robust physics
engine and several other extensions of the original games. It is
currently 0-2 player only, but will hopefully have network play and
some more advanced computer controlled enemies in the future. The
graphics have been created using the Povray raytracer, and should be
easy to extend and modify. Airstrike is being developed using GNU
tools and the excellent SDL library, and has been ported from the
original Linux version to both Windows and Mac OSX.

%description -l pl
Airstrike jest dwuwymiarową grą polegającą na wzajemnym ostrzeliwaniu
się z plastikowych samolocików, utrzymaną w tradycji gier "Bigplanes"
i "BIP" z Intellivision i Amigi. Ma rozbudowany silnik fizyczny oraz
różne rozszerzenia oryginalnych gier. Aktualnie jest grą tylko dla 0-2
graczy, ale, miejmy nadzieję, dorobi się obsługi gry przez sieć oraz
bardziej zaawansowanych wrogów sterowanych przez komputer. Grafika
została stworzona za pomocą raytracera Povray i powinna być łatwa w
rozbudowywaniu i modyfikacji. Airstrike został stworzony przy użyciu
narzędzi GNU i świetnej biblioteki SDL, a z oryginalnej wersji
linuksowej został sportowany dodatkowo na Windows i Mac OSX.

%prep
%setup -q -n %{name}-%{version}-src
%patch0 -p1
%patch1 -p1

%build
%{__make} \
	CC="%{__cc}" \
	OPT="%{rpmcflags}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_datadir}/games/airstrike,%{_mandir}/man6,%{_bindir}}

cp -rf  data $RPM_BUILD_ROOT%{_datadir}/games/airstrike
install doc/airstrike.6 $RPM_BUILD_ROOT%{_mandir}/man6
install airstrike $RPM_BUILD_ROOT%{_bindir}
install airstrikerc $RPM_BUILD_ROOT%{_datadir}/games/airstrike

rm -f doc/airstrike.6

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc doc/*
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man6/*
%{_datadir}/games/airstrike