]> git.pld-linux.org Git - packages/Maelstrom.git/blob - Maelstrom.spec
- tabs in preamble
[packages/Maelstrom.git] / Maelstrom.spec
1 #
2 # Conditional build:
3 %bcond_with     cheaters
4 #
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
20 Summary:        Rockin' asteroids game
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
23 Name:           Maelstrom
24 Version:        3.0.6
25 Release:        6
26 License:        GPL for code, artwork and sounds can be redistributed only with Maelstrom
27 Group:          X11/Applications/Games
28 # Source0-md5:  8aab0e75ca52808fd6777535ebb1f1c4
29 Source0:        http://www.devolution.com/~slouken/projects/Maelstrom/src/%{name}-%{version}.tar.gz
30 Source1:        %{name}.desktop
31 Patch0:         %{name}-cheaters.patch
32 Patch1:         %{name}-dirs.patch
33 Patch2:         %{name}-amfix.patch
34 Patch3:         %{name}-sec.patch
35 URL:            http://www.devolution.com/~slouken/projects/Maelstrom/
36 BuildRequires:  SDL_net-devel
37 BuildRequires:  autoconf
38 BuildRequires:  automake
39 BuildRequires:  libstdc++-devel
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %define         _gamedir        %{_datadir}/Maelstrom
43 %define         specflags_ia32   -fomit-frame-pointer 
44
45 %description
46 Maelstrom is a rockin' asteroids game ported from the Macintosh
47 Originally written by Andrew Welch of Ambrosia Software, and ported to
48 UNIX and then SDL by Sam Lantinga <slouken@devolution.com>.
49
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
53 Macintosha przez Andrew Welcha z Ambrosia Software.
54
55 %description -l pt_BR.UTF-8
56 O Maelstrom é um jogo de asteróides vagantes portado do Macintosh,
57 originalmente escrito por Andrew Welch da Ambrosia Software, e portado
58 para o UNIX e SDL por Sam Lantinga.
59
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.
63
64 Gráficos 3D muito legais e sons, com suporte a temas e jogos via rede.
65
66 %prep
67 %setup  -q
68 # everlasting shield, more shots available, all-in-one equipment and
69 # reversed bonus in time function ;)
70 %{?with_cheaters:%patch0 -p1}
71 %patch1 -p1
72 %patch2 -p1
73 %patch3 -p1
74
75 %build
76 %{__aclocal}
77 %{__autoconf}
78 %{__automake}
79 %configure
80
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{/var/games,%{_desktopdir}}
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 rm -f $RPM_BUILD_ROOT%{_gamedir}/Images/Makefile*
91 rm -f Docs/Makefile*
92
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
101 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
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
109 %attr(2755,root,games) %{_bindir}/*
110 %{_gamedir}
111 %attr(664,root,games) %config(noreplace) %verify(not md5 mtime size) /var/games/Maelstrom-Scores
112 %{_desktopdir}/*.desktop
This page took 0.199166 seconds and 4 git commands to generate.