]>
Commit | Line | Data |
---|---|---|
27adf597 JK |
1 | Summary: Advanced Strategic Command - a free, turn based strategy game |
2 | Name: asc | |
766fd9a6 | 3 | Version: 1.9.4.3 |
27adf597 JK |
4 | Release: 1 |
5 | License: GPL | |
6 | Group: X11/Applications/Games/Strategy | |
7 | Group(de): X11/Applikationen/Spiele/Strategie | |
8 | Group(pl): X11/Aplikacje/Gry/Strategiczne | |
82567cd1 | 9 | Source0: http://prdownloads.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz |
27adf597 JK |
10 | Source1: %{name}.desktop |
11 | URL: http://www.asc-hq.org | |
12 | BuildRequires: SDL-devel | |
13 | BuildRequires: SDL_image-devel | |
14 | BuildRequires: SDL_mixer-devel | |
15 | BuildRequires: SDLmm-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define _prefix /usr/X11R6 | |
19 | %define _mandir %{_prefix}/man | |
20 | ||
21 | %description | |
22 | ||
23 | %prep | |
82567cd1 | 24 | %setup -q |
27adf597 JK |
25 | |
26 | %build | |
82567cd1 JK |
27 | aclocal |
28 | automake -a | |
29 | autoconf | |
30 | %configure CPPFLAGS="-I%{_includedir}" LDFLAGS="-L%{_libdir}" | |
27adf597 JK |
31 | %{__make} |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
766fd9a6 | 35 | install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Strategy,%{_mandir}/man6,%{_docdir}/%{name}-%{version}/html/graphics} |
27adf597 JK |
36 | |
37 | %{__make} install \ | |
38 | DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
766fd9a6 JK |
40 | install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy/ |
41 | install doc/manpages/*.6 $RPM_BUILD_ROOT%{_mandir}/man6/ | |
27adf597 | 42 | |
766fd9a6 JK |
43 | # bug in make install, so we do it here |
44 | install data/*.con $RPM_BUILD_ROOT%{_datadir}/games/asc | |
27adf597 | 45 | |
766fd9a6 | 46 | gzip -9nf TODO README AUTHORS ChangeLog |
27adf597 JK |
47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
766fd9a6 | 53 | %doc *.gz doc/readme.* doc/graphics doc/*.html doc/*.css |
27adf597 JK |
54 | %attr(2755,root,games) %{_bindir}/* |
55 | %{_datadir}/games/asc | |
56 | %{_applnkdir}/Games/Strategy/* | |
766fd9a6 | 57 | %{_mandir}/man6/* |