]>
Commit | Line | Data |
---|---|---|
dbae2f7e JB |
1 | # |
2 | # Conditional build: | |
4f1b2de2 | 3 | %bcond_with cheaters |
dbae2f7e | 4 | # |
baaff9fd TP |
5 | # Straced order of file searching: |
6 | # %Maelstrom Sprites | |
7 | # Maelstrom Sprites.bin | |
8 | # Maelstrom Sprites | |
9 | # %Maelstrom_Sprites | |
10 | # Maelstrom_Sprites.bin | |
11 | # Maelstrom_Sprites | |
12 | # | |
13 | # %Maelstrom Sounds | |
14 | # Maelstrom Sounds.bin | |
15 | # Maelstrom Sounds | |
16 | # %Maelstrom_Sounds | |
17 | # Maelstrom_Sounds.bin | |
18 | # Maelstrom_Sounds | |
19 | ||
0ec27104 | 20 | Summary: Rockin' asteroids game |
9268f441 ER |
21 | Summary(pl.UTF-8): Gra, w której strzela się do asteroidów |
22 | Summary(pt_BR.UTF-8): Maelstrom - um jogo tipo Asteroids muito bem-feito | |
0ec27104 | 23 | Name: Maelstrom |
ccc06b6c | 24 | Version: 3.0.6 |
4f1b2de2 | 25 | Release: 6 |
0ec27104 | 26 | License: GPL for code, artwork and sounds can be redistributed only with Maelstrom |
104f250f | 27 | Group: X11/Applications/Games |
91580953 | 28 | # Source0-md5: 8aab0e75ca52808fd6777535ebb1f1c4 |
785f52e9 | 29 | Source0: http://www.devolution.com/~slouken/projects/Maelstrom/src/%{name}-%{version}.tar.gz |
d537f849 TP |
30 | Source1: %{name}.desktop |
31 | Patch0: %{name}-cheaters.patch | |
dbae2f7e JB |
32 | Patch1: %{name}-dirs.patch |
33 | Patch2: %{name}-amfix.patch | |
c443be27 | 34 | Patch3: %{name}-sec.patch |
785f52e9 | 35 | URL: http://www.devolution.com/~slouken/projects/Maelstrom/ |
0ec27104 | 36 | BuildRequires: SDL_net-devel |
dbae2f7e JB |
37 | BuildRequires: autoconf |
38 | BuildRequires: automake | |
0ec27104 TP |
39 | BuildRequires: libstdc++-devel |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
dbae2f7e | 42 | %define _gamedir %{_datadir}/Maelstrom |
c85fdd7f | 43 | %define specflags_ia32 -fomit-frame-pointer |
dbae2f7e | 44 | |
0ec27104 TP |
45 | %description |
46 | Maelstrom is a rockin' asteroids game ported from the Macintosh | |
5ef773e0 ER |
47 | Originally written by Andrew Welch of Ambrosia Software, and ported to |
48 | UNIX and then SDL by Sam Lantinga <slouken@devolution.com>. | |
0ec27104 | 49 | |
cd0e51b1 JR |
50 | %description -l pl.UTF-8 |
51 | Maelstrom jest kosmiczną strzelanką sportowaną na Uniksy i SDL przez | |
52 | Sama Lantinga <slouken@devolution.com>, oryginalnie napisaną na | |
0ec27104 TP |
53 | Macintosha przez Andrew Welcha z Ambrosia Software. |
54 | ||
cd0e51b1 JR |
55 | %description -l pt_BR.UTF-8 |
56 | O Maelstrom é um jogo de asteróides vagantes portado do Macintosh, | |
5ef773e0 | 57 | originalmente escrito por Andrew Welch da Ambrosia Software, e portado |
26942112 | 58 | para o UNIX e SDL por Sam Lantinga. |
59 | ||
cd0e51b1 JR |
60 | Sua nave está no temido círculo de asteróides "Maelstrom", e você tem |
61 | que sobreviver explodindo todos os asteróides e evitando outros | |
62 | inimigos como estrelas Nova, turbilhões e naves e minas Shenobi. | |
26942112 | 63 | |
cd0e51b1 | 64 | Gráficos 3D muito legais e sons, com suporte a temas e jogos via rede. |
26942112 | 65 | |
0ec27104 TP |
66 | %prep |
67 | %setup -q | |
68 | # everlasting shield, more shots available, all-in-one equipment and | |
69 | # reversed bonus in time function ;) | |
4f1b2de2 | 70 | %{?with_cheaters:%patch0 -p1} |
dbae2f7e JB |
71 | %patch1 -p1 |
72 | %patch2 -p1 | |
c443be27 | 73 | %patch3 -p1 |
0ec27104 TP |
74 | |
75 | %build | |
2cdb05d3 | 76 | %{__aclocal} |
dbae2f7e JB |
77 | %{__autoconf} |
78 | %{__automake} | |
79 | %configure | |
80 | ||
0ec27104 TP |
81 | %{__make} |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
3f739d6a | 85 | install -d $RPM_BUILD_ROOT{/var/games,%{_desktopdir}} |
dbae2f7e JB |
86 | |
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
0ec27104 | 89 | |
dbae2f7e | 90 | rm -f $RPM_BUILD_ROOT%{_gamedir}/Images/Makefile* |
0ec27104 TP |
91 | rm -f Docs/Makefile* |
92 | ||
dbae2f7e JB |
93 | # /usr is read-only |
94 | mv -f $RPM_BUILD_ROOT%{_gamedir}/Maelstrom-Scores $RPM_BUILD_ROOT/var/games | |
95 | ln -sf /var/games/Maelstrom-Scores $RPM_BUILD_ROOT%{_gamedir} | |
96 | ||
97 | # not needed (examples for internal Mac library) | |
98 | # and playwave conflicts with SDL_mixer | |
99 | rm -f $RPM_BUILD_ROOT%{_bindir}/{macres,playwave,snd2wav} | |
100 | ||
3f739d6a | 101 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
0ec27104 TP |
102 | |
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc README* Changelog COPYING CREDITS Docs | |
4f1b2de2 | 109 | %attr(2755,root,games) %{_bindir}/* |
dbae2f7e | 110 | %{_gamedir} |
4f1b2de2 JB |
111 | %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) /var/games/Maelstrom-Scores |
112 | %{_desktopdir}/*.desktop |