]> git.pld-linux.org Git - packages/asc.git/blob - asc.spec
- up to 1.15.3.0
[packages/asc.git] / asc.spec
1 # TODO:
2 # - check build
3 # package probalby Req:  paragui1-devel not paragui-devel
4
5 Summary:        Advanced Strategic Command - a free, turn based strategy game
6 Summary(pl):    Advanced Strategic Command - turowa gra strategiczna
7 Name:           asc
8 Version:        1.15.3.0
9 Release:        0.1
10 License:        GPL
11 Group:          X11/Applications/Games/Strategy
12 Source0:        http://dl.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz
13 # Source0-md5:  5b1259915e48dfd9a44d5ac72ceaea6c
14 Source1:        %{name}.desktop
15 Source2:        http://www.asc-hq.org/frontiers.mp3
16 # Source2-md5:  560f5783836b309906e57e77417f3864
17 Source3:        http://www.asc-hq.org/time_to_strike.mp3
18 # Source3-md5:  f0ab3c633f51430af0445ecaa02e3197
19 Source4:        http://www.asc-hq.org/machine_wars.mp3
20 # Source4-md5:  c383139928613c7b081835c3d4a28fa8
21 URL:            http://www.asc-hq.org/
22 BuildRequires:  SDL-devel
23 BuildRequires:  SDL_image-devel
24 BuildRequires:  SDL_mixer-devel
25 BuildRequires:  SDLmm-devel
26 BuildRequires:  autoconf
27 BuildRequires:  automake
28 BuildRequires:  libsigc++12-devel
29 BuildRequires:  libtool
30 BuildRequires:  paragui-devel >= 1.0.1
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 ASC is a turn-based strategy game in the tradition of Battle Isle 2/3.
35 It can be played against the computer or against other human players
36 (either hotseat or by mail).
37
38 %description -l pl
39 ASC jest turow± gr± strategiczn± maj±c± korzenie w Battle Isle 2/3.
40 Graj±c w ni± mo¿na siê zmierzyæ z komputerem lub z innym cz³owiekiem
41 (przy jednym komputerze, lub przez pocztê).
42
43 %package music
44 Summary:        Music for Advanced Strategic Command
45 Summary(pl):    Muzyka do Advanced Strategic Command
46 Group:          X11/Applications/Games/Strategy
47 Requires:       %{name}
48
49 %description music
50 Music for Advanced Strategic Command in MP3 format.
51
52 %description music -l pl
53 Muzyka do Advanced Strategic Command w formacie MP3.
54
55 %prep
56 %setup -q
57
58 cp %{SOURCE2} %{SOURCE3} %{SOURCE4} data/music
59
60 %build
61 #%{__libtoolize}
62 #%{__aclocal}
63 #%{__automake}
64 #%{__autoconf}
65 cp -f /usr/share/automake/config.sub .
66
67 DISPLAY=:0
68 export DISPLAY
69
70 %configure
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Strategy,%{_mandir}/man6,%{_docdir}/%{name}-%{version}/html/graphics}
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 install data/legacy.con $RPM_BUILD_ROOT%{_datadir}/games/asc
82
83 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog source/TODO doc/graphics doc/*.{html,css}
91 %attr(2755,root,games) %{_bindir}/asc
92 %attr(755,root,root) %{_bindir}/asc_mapedit
93 %dir %{_datadir}/games/asc
94 %dir %{_datadir}/games/asc/music
95 %{_datadir}/games/asc/*.gfx
96 %{_datadir}/games/asc/*.zip
97 %{_datadir}/games/asc/*.con
98 %{_applnkdir}/Games/Strategy/*
99
100 %files music
101 %defattr(644,root,root,755)
102 %{_datadir}/games/asc/music/*
This page took 0.071492 seconds and 4 git commands to generate.