]> git.pld-linux.org Git - packages/freebooters.git/blob - freebooters.spec
- fix install paths
[packages/freebooters.git] / freebooters.spec
1 Summary:        Free "Pirates!" clone
2 Summary(pl):    Klon gry "Pirates!"
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
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Freebooters is a strategy game settled in the Caribbean Sea during the
20 golden age of piracy. It is based on the game mechanics of Sid Meier's
21 "Pirates!", but is not an exact clone.
22
23 %description -l pl
24 Freebooters jest gr± strategiczn±, której akcja rozgrywa siê na morzu
25 Karaibskim w czasach z³otej ery piratów. Bazuje na grze Sida Meiera
26 "Pirates!", ale nie jest jej dok³adnym klonem.
27
28 %prep
29 %setup -q
30 %patch0 -p1
31
32 %build
33 %{__make} \
34         CXX="%{__cxx}" \
35         CXXFLAGS="`sdl-config --cflags` %{rpmcflags}"
36
37 sed -ie 's#datadir=.*#datadir=%{_datadir}/%{name}/#' data/%{name}.conf
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT \
44         BINDIR=%{_bindir} \
45         DATADIR=%{_datadir} \
46         MANDIR=%{_mandir} \
47         SYSCONFDIR=%{_sysconfdir}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc doc/{AUTHORS,changelog-until-0.2.txt,NEWS,README,TODO}
55 %attr(755,root,root) %{_bindir}/*
56 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
57 %{_datadir}/%{name}
58 %{_mandir}/man6/*.6*
This page took 0.069843 seconds and 3 git commands to generate.