/[packages]/cauldron/airstrike/current/SPECS/airstrike.spec
ViewVC logotype

Contents of /cauldron/airstrike/current/SPECS/airstrike.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 451500 - (show annotations) (download)
Mon Jul 8 20:06:29 2013 UTC (7 years, 3 months ago) by dams
File size: 2286 byte(s)
- SILENT fix %%Release and add %%Epoch
1 %define pre pre6a
2
3 Summary: Incredibly addictive 2D dogfight game
4 Name: airstrike
5 Version: 1.0
6 Release: %mkrel -c %{pre} 1
7 Epoch: 1
8 License: GPL
9 Group: Games/Arcade
10 Source0: http://icculus.org/%{name}/%{name}-%{pre}-src.tar.gz
11 Source11: %{name}-16x16.png
12 Source12: %{name}-32x32.png
13 Source13: %{name}-48x48.png
14 Patch0: airstrike-pre6a-config.patch
15 Patch1: airstrike-pre6a-optflags.patch
16 Patch3: airstrike-pre6a-fix-build.patch
17 Patch4: airstrike-pre6a-fix-link-flags.patch
18 URL: http://icculus.org/airstrike/
19 BuildRequires: SDL-devel SDL_mixer-devel SDL_image-devel
20
21 %description
22 Airstrike is a 0-2 players 2d dogfight game in the tradition of the
23 Intellivision and Amiga games 'Biplanes' and 'BIP'. It features a robust
24 physics engine and several other extensions of the original games,
25 such as povray made graphics and incredible gameplay.
26
27 %prep
28 %setup -q -n %{name}-%{pre}-src
29 %apply_patches
30
31 %build
32 %make OPTFLAGS="$RPM_OPT_FLAGS" airstrike-sound
33
34 %install
35 install -m755 airstrike -D %{buildroot}%{_gamesbindir}/airstrike.bin
36
37 # Launch script
38 cat <<EOF > %{buildroot}%{_gamesbindir}/%{name}
39 #!/bin/sh
40 if [ ! -e \$HOME/.airstrikerc ]; then
41 cp %{_gamesdatadir}/%{name}/airstrikerc \$HOME/.airstrikerc
42 fi
43 cd %{_gamesdatadir}/%{name}
44 airstrike.bin \$@
45 EOF
46 chmod 755 %{buildroot}%{_gamesbindir}/%{name}
47
48 install -m644 airstrikerc -D %{buildroot}%{_gamesdatadir}/%{name}/airstrikerc
49 cp -r data %{buildroot}%{_gamesdatadir}/%{name}
50
51 install -m644 doc/%{name}.6 -D %{buildroot}%{_mandir}/man6/%{name}.6
52
53 mkdir -p %{buildroot}%{_datadir}/applications
54 cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
55 [Desktop Entry]
56 Name=AirStrike
57 Comment=%{Summary}
58 Exec=%{name}
59 Icon=%{name}
60 Terminal=false
61 Type=Application
62 StartupNotify=true
63 Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
64 EOF
65
66 install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
67 install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
68 install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
69
70 %files
71 %doc ChangeLog README doc
72 %{_gamesbindir}/*
73 %dir %{_gamesdatadir}/%{name}
74 %{_gamesdatadir}/%{name}/*
75 %{_mandir}/man6/%{name}.6*
76 %{_datadir}/applications/%{name}.desktop
77 %{_miconsdir}/%{name}.png
78 %{_iconsdir}/%{name}.png
79 %{_liconsdir}/%{name}.png

  ViewVC Help
Powered by ViewVC 1.1.28