]>
Commit | Line | Data |
---|---|---|
89e235bb | 1 | # TODO: |
2 | # - check build | |
3 | # package probalby Req: paragui1-devel not paragui-devel | |
4 | ||
27adf597 | 5 | Summary: Advanced Strategic Command - a free, turn based strategy game |
d3f215ae | 6 | Summary(pl.UTF-8): Advanced Strategic Command - turowa gra strategiczna |
27adf597 | 7 | Name: asc |
89e235bb | 8 | Version: 1.15.3.0 |
9 | Release: 0.1 | |
27adf597 JK |
10 | License: GPL |
11 | Group: X11/Applications/Games/Strategy | |
660a3687 | 12 | Source0: http://dl.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz |
89e235bb | 13 | # Source0-md5: 5b1259915e48dfd9a44d5ac72ceaea6c |
27adf597 | 14 | Source1: %{name}.desktop |
e8e0b55f | 15 | Source2: http://www.asc-hq.org/frontiers.mp3 |
16 | # Source2-md5: 560f5783836b309906e57e77417f3864 | |
17 | Source3: http://www.asc-hq.org/time_to_strike.mp3 | |
5814d4e6 | 18 | # Source3-md5: f0ab3c633f51430af0445ecaa02e3197 |
e8e0b55f | 19 | Source4: http://www.asc-hq.org/machine_wars.mp3 |
5814d4e6 | 20 | # Source4-md5: c383139928613c7b081835c3d4a28fa8 |
ab7992a7 | 21 | URL: http://www.asc-hq.org/ |
27adf597 JK |
22 | BuildRequires: SDL-devel |
23 | BuildRequires: SDL_image-devel | |
24 | BuildRequires: SDL_mixer-devel | |
25 | BuildRequires: SDLmm-devel | |
ab7992a7 JB |
26 | BuildRequires: autoconf |
27 | BuildRequires: automake | |
8528232d | 28 | BuildRequires: libsigc++12-devel |
8e8df233 | 29 | BuildRequires: libtool |
89e235bb | 30 | BuildRequires: paragui-devel >= 1.0.1 |
27adf597 JK |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
27adf597 | 33 | %description |
e8e0b55f | 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). | |
27adf597 | 37 | |
d3f215ae JR |
38 | %description -l pl.UTF-8 |
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ę). | |
f58158f1 MM |
42 | |
43 | %package music | |
8e8df233 | 44 | Summary: Music for Advanced Strategic Command |
d3f215ae | 45 | Summary(pl.UTF-8): Muzyka do Advanced Strategic Command |
8e8df233 JB |
46 | Group: X11/Applications/Games/Strategy |
47 | Requires: %{name} | |
f58158f1 MM |
48 | |
49 | %description music | |
d7b18811 | 50 | Music for Advanced Strategic Command in MP3 format. |
f58158f1 | 51 | |
d3f215ae | 52 | %description music -l pl.UTF-8 |
d7b18811 | 53 | Muzyka do Advanced Strategic Command w formacie MP3. |
f58158f1 | 54 | |
27adf597 | 55 | %prep |
e8e0b55f | 56 | %setup -q |
57 | ||
58 | cp %{SOURCE2} %{SOURCE3} %{SOURCE4} data/music | |
27adf597 JK |
59 | |
60 | %build | |
e8e0b55f | 61 | #%{__libtoolize} |
62 | #%{__aclocal} | |
63 | #%{__automake} | |
64 | #%{__autoconf} | |
afa242f5 | 65 | cp -f /usr/share/automake/config.sub . |
66 | ||
e8e0b55f | 67 | %configure |
89e235bb | 68 | |
27adf597 JK |
69 | %{__make} |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
766fd9a6 | 73 | install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Strategy,%{_mandir}/man6,%{_docdir}/%{name}-%{version}/html/graphics} |
27adf597 JK |
74 | |
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
e8e0b55f | 78 | install data/legacy.con $RPM_BUILD_ROOT%{_datadir}/games/asc |
27adf597 | 79 | |
e8e0b55f | 80 | install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy |
27adf597 | 81 | |
27adf597 JK |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
e8e0b55f | 87 | %doc AUTHORS ChangeLog source/TODO doc/graphics doc/*.{html,css} |
88 | %attr(2755,root,games) %{_bindir}/asc | |
89 | %attr(755,root,root) %{_bindir}/asc_mapedit | |
8e8df233 | 90 | %dir %{_datadir}/games/asc |
e8e0b55f | 91 | %dir %{_datadir}/games/asc/music |
92 | %{_datadir}/games/asc/*.gfx | |
f58158f1 MM |
93 | %{_datadir}/games/asc/*.zip |
94 | %{_datadir}/games/asc/*.con | |
27adf597 | 95 | %{_applnkdir}/Games/Strategy/* |
f58158f1 MM |
96 | |
97 | %files music | |
43caa13f | 98 | %defattr(644,root,root,755) |
e8e0b55f | 99 | %{_datadir}/games/asc/music/* |