]> git.pld-linux.org Git - packages/asc.git/blob - asc.spec
- fixed one thing that was veryveryvery bad... now it works on ppc :)
[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 Source0:        http://prdownloads.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz
9 Source1:        %{name}.desktop
10 Patch0:         %{name}-va_arg_fix.patch
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 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _prefix         /usr/X11R6
21 %define         _mandir         %{_prefix}/man
22
23 %description
24 ASC is a free, turn based strategy game. It is designed in the
25 tradition of the Battle Isle series from Bluebyte and is currently
26 available for Windows and Linux.
27
28 %description -l pl
29 ASC jest darmow±, turow± gr± strategiczn±. Zosta³a zaprojektowana
30 w tradycji serii Battle Isle firmy Bluebyte. Obecnie jest dostêpna
31 pod Windows i Linuksa.
32       
33 %prep
34 %setup -q
35 %patch
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.033607 seconds and 4 git commands to generate.