]> git.pld-linux.org Git - packages/asc.git/blob - asc.spec
bc8c92ba69e1839616b07267c269254296c095bd
[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.10.2
5 Release:        2
6 License:        GPL
7 Group:          X11/Applications/Games/Strategy
8 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/asc-hq/%{name}-source-%{version}.tar.gz
9 Source1:        %{name}.desktop
10 Source2:        %{name}-mp3.tar.bz2
11 Patch0:         %{name}-ac_fix.patch
12 Patch1:         %{name}-am_fix.patch
13 URL:            http://www.asc-hq.org/
14 BuildRequires:  SDL-devel
15 BuildRequires:  SDL_image-devel
16 BuildRequires:  SDL_mixer-devel
17 BuildRequires:  SDLmm-devel
18 BuildRequires:  paragui-devel
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _prefix         /usr/X11R6
24 %define         _mandir         %{_prefix}/man
25 %define         _datadir        /usr/share
26
27 %description
28 ASC is a free, turn based strategy game. It is designed in the
29 tradition of the Battle Isle series from Bluebyte and is currently
30 available for Windows and Linux.
31
32 %description -l pl
33 ASC jest darmow±, turow± gr± strategiczn±. Zosta³a zaprojektowana
34 w tradycji serii Battle Isle firmy Bluebyte. Obecnie jest dostêpna
35 pod Windows i Linuksa.
36
37 %package music
38 Summary:                Music for Advanced Strategic Command
39 Summary(pl):    Muzyka do Advanced Strategic Command
40 Requires:               %{name}
41 Group:                  X11/Applications/Games/Strategy
42
43 %description music
44 Music for Advanced Strategic Command in mp3 format.
45
46 %description music -l pl
47 Muzyka do Advanced Strategic Command w formacie mp3.
48
49 %prep
50 %setup -q -a 2
51 %patch0
52 %patch1
53
54 %build
55 %{__libtoolize}
56 aclocal
57 %{__automake}
58 %{__autoconf}
59 %configure \
60                 CPPFLAGS="-I%{_includedir}" LDFLAGS="-L%{_libdir}" \
61                 --disable-paraguitest
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Strategy,%{_mandir}/man6,%{_docdir}/%{name}-%{version}/html/graphics}
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy
72 install doc/manpages/*.6 $RPM_BUILD_ROOT%{_mandir}/man6
73
74 # bug in make install, so we do it here
75 install data/*.con $RPM_BUILD_ROOT%{_datadir}/games/asc
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %doc TODO README AUTHORS ChangeLog doc/graphics doc/*.html doc/*.css
83 %attr(2755,root,games) %{_bindir}/*
84 %{_datadir}/games/asc/*.zip
85 %{_datadir}/games/asc/*.con
86 %{_applnkdir}/Games/Strategy/*
87 %{_mandir}/man6/*
88
89 %files music
90 %{_datadir}/games/asc/music
This page took 0.077823 seconds and 2 git commands to generate.