]> git.pld-linux.org Git - packages/asc.git/blob - asc.spec
- decriptions, BuildRequires: autoconf,automake
[packages/asc.git] / asc.spec
1 Summary:        Advanced Strategic Command - a free, turn based strategy game
2 Summary(pl):    Advanced Strategic Command - turowa gra strategiczna
3 Name:           asc
4 Version:        1.9.4.3
5 Release:        1
6 License:        GPL
7 Group:          X11/Applications/Games/Strategy
8 Group(de):      X11/Applikationen/Spiele/Strategie
9 Group(pl):      X11/Aplikacje/Gry/Strategiczne
10 Source0:        http://prdownloads.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz
11 Source1:        %{name}.desktop
12 URL:            http://www.asc-hq.org/
13 BuildRequires:  SDL-devel
14 BuildRequires:  SDL_image-devel
15 BuildRequires:  SDL_mixer-devel
16 BuildRequires:  SDLmm-devel
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _prefix         /usr/X11R6
22 %define         _mandir         %{_prefix}/man
23
24 %description
25 ASC is a free, turn based strategy game. It is designed in the
26 tradition of the Battle Isle series from Bluebyte and is currently
27 available for Windows and Linux.
28
29 %description -l pl
30 ASC jest darmow±, turow± gr± strategiczn±. Zosta³a zaprojektowana
31 w tradycji serii Battle Isle firmy Bluebyte. Obecnie jest dostêpna
32 pod Windows i Linuksa.
33       
34 %prep
35 %setup -q
36
37 %build
38 aclocal
39 automake -a
40 autoconf
41 %configure CPPFLAGS="-I%{_includedir}" LDFLAGS="-L%{_libdir}"
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Strategy,%{_mandir}/man6,%{_docdir}/%{name}-%{version}/html/graphics}
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy
52 install doc/manpages/*.6 $RPM_BUILD_ROOT%{_mandir}/man6
53
54 # bug in make install, so we do it here
55 install data/*.con $RPM_BUILD_ROOT%{_datadir}/games/asc
56
57 gzip -9nf TODO README AUTHORS ChangeLog
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc *.gz doc/readme.* doc/graphics doc/*.html doc/*.css
65 %attr(2755,root,games) %{_bindir}/*
66 %{_datadir}/games/asc
67 %{_applnkdir}/Games/Strategy/*
68 %{_mandir}/man6/*
This page took 0.055136 seconds and 3 git commands to generate.