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