]> git.pld-linux.org Git - packages/Maelstrom.git/blob - Maelstrom.spec
- fixed FHS compl.: added dirs patch, moved data to %%{_datadir}/Maelstrom,
[packages/Maelstrom.git] / Maelstrom.spec
1 #
2 # Conditional build:
3 # _with_cheaters
4 #
5 Summary:        Rockin' asteroids game
6 Summary(pl):    Gra, w której strzelasz do asteroidów
7 Name:           Maelstrom
8 Version:        3.0.5
9 Release:        2
10 License:        GPL for code, artwork and sounds can be redistributed only with Maelstrom
11 Group:          X11/Application/Games
12 Source0:        http://www.devolution.com/~slouken/Maelstrom/src/%{name}-%{version}.tar.gz
13 Source1:        http://mops.uci.agh.edu.pl/~gotar/%{name}.desktop
14 Patch0:         http://mops.uci.agh.edu.pl/~gotar/%{name}-cheaters.patch
15 Patch1:         %{name}-dirs.patch
16 Patch2:         %{name}-amfix.patch
17 URL:            http://www.devolution.com/~slouken/Maelstrom/
18 BuildRequires:  SDL-devel
19 BuildRequires:  SDL_net-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  libstdc++-devel
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         _prefix         /usr/X11R6
26 %define         _gamedir        %{_datadir}/Maelstrom
27
28 %description
29 Maelstrom is a rockin' asteroids game ported from the Macintosh
30 Originally written by Andrew Welch of Ambrosia Software, and ported
31 to UNIX and then SDL by Sam Lantinga <slouken@devolution.com>.
32
33 %description -l pl
34 Maelstrom jest kosmiczn± strzelank± sportowan± na UNIXy i SDL przez
35 Sama Lantinga <slouken@devolution.com>, oryginalnie napisan± na
36 Macintosha przez Andrew Welcha z Ambrosia Software.
37
38 %prep
39 %setup  -q
40 # everlasting shield, more shots available, all-in-one equipment and
41 # reversed bonus in time function ;)
42 %{?_with_cheaters:%patch0 -p1}
43 %patch1 -p1
44 %patch2 -p1
45
46 %build
47 # make install forgets to install binaries
48 aclocal
49 %{__autoconf}
50 %{__automake}
51 %configure
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{/var/games,%{_applnkdir}/Games/Arcade}
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 #       GAME_INSTALLDIR=$RPM_BUILD_ROOT%{_gamedir} \
63 #       target=$RPM_BUILD_ROOT%{_gamedir}
64 #       prefix=$RPM_BUILD_ROOT%{_prefix}
65
66 #mv $RPM_BUILD_ROOT%{_prefix}/bin $RPM_BUILD_ROOT%{_prefix}/X11R6
67 rm -f $RPM_BUILD_ROOT%{_gamedir}/Images/Makefile*
68 rm -f Docs/Makefile*
69
70 # /usr is read-only
71 mv -f $RPM_BUILD_ROOT%{_gamedir}/Maelstrom-Scores $RPM_BUILD_ROOT/var/games
72 ln -sf /var/games/Maelstrom-Scores $RPM_BUILD_ROOT%{_gamedir}
73
74 # not needed (examples for internal Mac library)
75 # and playwave conflicts with SDL_mixer
76 rm -f $RPM_BUILD_ROOT%{_bindir}/{macres,playwave,snd2wav}
77
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Arcade
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc README* Changelog COPYING CREDITS Docs
86 %attr(755,root,root) %{_bindir}/*
87 %{_gamedir}
88 %attr(666,root,root) %config(noreplace) %verify(not md5 size mtime) /var/games/Maelstrom-Scores
89 %{_applnkdir}/Games/Arcade/*
This page took 0.041848 seconds and 4 git commands to generate.