summaryrefslogtreecommitdiff
path: root/airstrike.spec
blob: 2031f49b38fea3e87757b3b2334947a2b07a2223 (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
Summary:	Airstrike
Summary(pl):	Airstrike - Plastikowy Czerwony Baron
Name:		airstrike
Version:	pre6a
Release:	1
License:	GPL
Group:		Applications/Games
URL:		http://icculus.org/airstrike/
Source0:	http://icculus.org/airstrike/%{name}-%{version}-src.tar.gz
# Source0-md5:	af7367f9223309fbcf9759e04028394e
Patch0:		%{name}-pld.patch
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. The game is
released under the GPL.

%description -l pl
Airstrike jest dwuwymiarową grą polegającą na wzajemnym ostrzeliwaniu
się z plastikowych samolocików. A wszystko z ładnie wykonaną za pomocą
PovRaya grafiką.

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

%build
%{_make}

%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

%clean
rm -rf $RPM_BUILD_ROOT

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