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