]>
Commit | Line | Data |
---|---|---|
687f1771 | 1 | Summary: Free "Pirates!" clone |
4c85414f | 2 | Summary(pl.UTF-8): Klon gry "Pirates!" |
687f1771 | 3 | Name: freebooters |
4 | Version: 0.2.1 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Games | |
8 | Source0: http://download.gna.org/freebooters/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 153fdd7110c48ee93a7f7a894a32a56c | |
10 | Patch0: %{name}-paths.patch | |
11 | URL: http://home.gna.org/freebooters/ | |
12 | BuildRequires: SDL-devel >= 1.2.0 | |
13 | BuildRequires: SDL_image-devel >= 1.2.0 | |
14 | BuildRequires: SDL_mixer-devel >= 1.2.0 | |
15 | BuildRequires: SDL_ttf-devel >= 2.0.0 | |
db9a3369 | 16 | BuildRequires: libstdc++-devel |
17 | BuildRequires: sed >= 4.0 | |
687f1771 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | Freebooters is a strategy game settled in the Caribbean Sea during the | |
22 | golden age of piracy. It is based on the game mechanics of Sid Meier's | |
23 | "Pirates!", but is not an exact clone. | |
24 | ||
372c94e8 JR |
25 | %description -l pl.UTF-8 |
26 | Freebooters jest grą strategiczną, której akcja rozgrywa się na Morzu | |
27 | Karaibskim w czasach złotej ery piratów. Bazuje na grze Sida Meiera | |
28 | "Pirates!", ale nie jest jej dokładnym klonem. | |
687f1771 | 29 | |
30 | %prep | |
31 | %setup -q | |
32 | %patch0 -p1 | |
33 | ||
34 | %build | |
35 | %{__make} \ | |
36 | CXX="%{__cxx}" \ | |
37 | CXXFLAGS="`sdl-config --cflags` %{rpmcflags}" | |
38 | ||
39 | sed -ie 's#datadir=.*#datadir=%{_datadir}/%{name}/#' data/%{name}.conf | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT \ | |
46 | BINDIR=%{_bindir} \ | |
47 | DATADIR=%{_datadir} \ | |
48 | MANDIR=%{_mandir} \ | |
49 | SYSCONFDIR=%{_sysconfdir} | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc doc/{AUTHORS,changelog-until-0.2.txt,NEWS,README,TODO} | |
57 | %attr(755,root,root) %{_bindir}/* | |
db9a3369 | 58 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf |
687f1771 | 59 | %{_datadir}/%{name} |
60 | %{_mandir}/man6/*.6* |