]> git.pld-linux.org Git - packages/abuse_sdl.git/blob - abuse_sdl.spec
- tabs in preamble
[packages/abuse_sdl.git] / abuse_sdl.spec
1 Summary:        An SDL port of the game Abuse
2 Summary(pl.UTF-8):      Port SDL gry Abuse
3 Name:           abuse_sdl
4 Version:        0.7.0
5 Release:        3
6 License:        GPL v2
7 Group:          X11/Applications/Games
8 #Source0Download: http://www.labyrinth.net.au/~trandor/abuse/
9 Source0:        http://www.labyrinth.net.au/~trandor/abuse/files/%{name}-%{version}.tar.bz2
10 # Source0-md5:  59ea4498886642aa975f04233cc92558
11 Source1:        http://www.labyrinth.net.au/~trandor/abuse/files/abuse_datafiles.tar.gz
12 # Source1-md5:  2b857668849b2dc7cd29cdd84a33c19e
13 Source2:        %{name}.desktop
14 Patch0:         %{name}-etc_dir.patch
15 URL:            http://www.labyrinth.net.au/~trandor/abuse/
16 BuildRequires:  SDL-devel >= 1.1.6
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  sed >= 4.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _abusedir       %{_datadir}/games/abuse
23
24 %description
25 Abuse-SDL is a port of Abuse, the classic Crack-Dot-Com game, to the
26 SDL library. It can run at any color depth, in a window or fullscreen,
27 and it has stereo sound with sound panning.
28
29 %description -l pl.UTF-8
30 Abuse-SDL to port Abuse, klasycznej gry Crack-Dot-Com, dla biblioteki
31 SDL. Może działać w dowolnej głębi koloru, w okienku lub na pełnym
32 ekranie, ma dźwięk stereo z panningiem.
33
34 %prep
35 %setup -q -a 1
36 %patch0 -p1
37
38 %build
39 sed -i -e "s:/usr/local/share/games/abuse:%{_abusedir}:" src/sdlport/setup.cpp
40 sed -i -e "s:(load \"lisp/ant.lsp\"):(load \"lisp/ant.lsp\")\n(load \"register/ant.lsp\"):" abuse.lsp
41 cp /usr/share/automake/config.sub .
42
43 %configure
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
49         $RPM_BUILD_ROOT%{_abusedir}/{art,addon,levels,lisp,music,netlevel,register,sfx}}
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
55 install abuse.png $RPM_BUILD_ROOT%{_pixmapsdir}
56
57 for dir in art addon levels lisp music netlevel register sfx
58 do
59 cp -R $dir $RPM_BUILD_ROOT%{_abusedir}
60 done
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc AUTHORS README* TODO
68 %attr(755,root,root) %{_bindir}/*
69 %dir %{_abusedir}
70 %{_abusedir}/*.bmp
71 %{_abusedir}/*.png
72 %{_abusedir}/*.lsp
73 %{_abusedir}/sfx
74 %{_abusedir}/register
75 %{_abusedir}/netlevel
76 %{_abusedir}/music
77 %{_abusedir}/lisp
78 %{_abusedir}/levels
79 %{_abusedir}/art
80 %{_abusedir}/addon
81 %{_pixmapsdir}/*.png
82 %{_desktopdir}/*.desktop
83 %{_mandir}/man6/*.6*
This page took 0.055956 seconds and 3 git commands to generate.