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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 502466 - (hide annotations) (download)
Thu Oct 17 22:17:57 2013 UTC (7 years ago) by umeabot
File size: 2286 byte(s)
Mageia 4 Mass Rebuild
1 dmorgan 75539 %define pre pre6a
2    
3 dams 451498 Summary: Incredibly addictive 2D dogfight game
4     Name: airstrike
5     Version: 1.0
6 umeabot 502466 Release: %mkrel -c %{pre} 2
7 dams 451500 Epoch: 1
8 dmorgan 75539 License: GPL
9     Group: Games/Arcade
10 dams 451498 Source0: http://icculus.org/%{name}/%{name}-%{pre}-src.tar.gz
11 dmorgan 75539 Source11: %{name}-16x16.png
12     Source12: %{name}-32x32.png
13     Source13: %{name}-48x48.png
14 pterjan 331102 Patch0: airstrike-pre6a-config.patch
15     Patch1: airstrike-pre6a-optflags.patch
16 dams 259783 Patch3: airstrike-pre6a-fix-build.patch
17 pterjan 331102 Patch4: airstrike-pre6a-fix-link-flags.patch
18 dmorgan 75539 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 dams 451498 %apply_patches
30 dmorgan 75539
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 dams 451498 cat <<EOF > %{buildroot}%{_gamesbindir}/%{name}
39 dmorgan 75539 #!/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 dams 451498 chmod 755 %{buildroot}%{_gamesbindir}/%{name}
47 dmorgan 75539
48     install -m644 airstrikerc -D %{buildroot}%{_gamesdatadir}/%{name}/airstrikerc
49     cp -r data %{buildroot}%{_gamesdatadir}/%{name}
50    
51 dams 451498 install -m644 doc/%{name}.6 -D %{buildroot}%{_mandir}/man6/%{name}.6
52 dmorgan 75539
53 dams 451498 mkdir -p %{buildroot}%{_datadir}/applications
54     cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
55 dmorgan 75539 [Desktop Entry]
56     Name=AirStrike
57     Comment=%{Summary}
58 dams 259783 Exec=%{name}
59 dmorgan 75539 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 dams 451498 %{_mandir}/man6/%{name}.6*
76     %{_datadir}/applications/%{name}.desktop
77 dmorgan 75539 %{_miconsdir}/%{name}.png
78     %{_iconsdir}/%{name}.png
79     %{_liconsdir}/%{name}.png

  ViewVC Help
Powered by ViewVC 1.1.28