]>
Commit | Line | Data |
---|---|---|
89e235bb | 1 | # TODO: |
a50209ba | 2 | # - check sounds - doesn't work for me |
89e235bb | 3 | |
27adf597 | 4 | Summary: Advanced Strategic Command - a free, turn based strategy game |
ced97a48 | 5 | Summary(pl.UTF-8): Advanced Strategic Command - turowa gra strategiczna |
27adf597 | 6 | Name: asc |
0553e28b | 7 | Version: 2.2.0.0 |
8 | Release: 1 | |
a50209ba | 9 | License: GPL v2+ |
27adf597 | 10 | Group: X11/Applications/Games/Strategy |
a50209ba | 11 | Source0: http://dl.sourceforge.net/asc-hq/%{name}-%{version}.tar.bz2 |
0553e28b | 12 | # Source0-md5: a5207e63109bb81b432542d0b43e9970 |
27adf597 | 13 | Source1: %{name}.desktop |
a50209ba | 14 | Source2: %{name}.xpm |
0553e28b | 15 | Patch0: %{name}-configure.patch |
ab7992a7 | 16 | URL: http://www.asc-hq.org/ |
0553e28b | 17 | BuildRequires: SDL-devel >= 1.2.2 |
27adf597 | 18 | BuildRequires: SDL_image-devel |
a50209ba | 19 | BuildRequires: SDL_mixer-devel >= 1.2 |
20 | BuildRequires: SDL_sound-devel | |
0553e28b | 21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
5db7b0b5 | 23 | BuildRequires: boost-devel >= 1.35.0 |
e7358786 | 24 | BuildRequires: bzip2-devel >= 1.0.0 |
0553e28b | 25 | BuildRequires: curl-devel >= 7.10.0 |
a50209ba | 26 | BuildRequires: expat-devel |
27 | BuildRequires: freetype-devel | |
28 | BuildRequires: libjpeg-devel | |
e7358786 | 29 | BuildRequires: libpng-devel |
a50209ba | 30 | BuildRequires: libsigc++12-devel >= 1.2 |
0553e28b | 31 | BuildRequires: libtool >= 2:1.5 |
a50209ba | 32 | BuildRequires: physfs-devel |
e7358786 | 33 | BuildRequires: pkgconfig |
0553e28b | 34 | BuildRequires: zlib-devel |
a50209ba | 35 | Obsoletes: asc-music |
27adf597 JK |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
27adf597 | 38 | %description |
e8e0b55f | 39 | ASC is a turn-based strategy game in the tradition of Battle Isle 2/3. |
40 | It can be played against the computer or against other human players | |
41 | (either hotseat or by mail). | |
27adf597 | 42 | |
d3f215ae | 43 | %description -l pl.UTF-8 |
0553e28b | 44 | ASC jest turową grą strategiczną mającą korzenie w Battle Isle |
45 | 2/3. Grając w nią można się zmierzyć z komputerem lub z innym | |
46 | człowiekiem (przy jednym komputerze, lub przez pocztę). | |
47 | ||
48 | %package tools | |
49 | Summary: Tools for ASC | |
50 | Summary(pl.UTF-8): Narzedzia dla ASC | |
51 | Group: X11/Applications/Games/Strategy | |
52 | ||
53 | %description tools | |
54 | Map editor and other tools for ASC. | |
55 | ||
56 | %description tools -l pl.UTF-8 | |
57 | Edytor map i inne narzedzia dla ASC | |
f58158f1 | 58 | |
27adf597 | 59 | %prep |
e8e0b55f | 60 | %setup -q |
0553e28b | 61 | %patch0 -p1 |
e8e0b55f | 62 | |
27adf597 | 63 | %build |
0553e28b | 64 | %{__libtoolize} |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
e8e0b55f | 69 | %configure |
27adf597 JK |
70 | %{__make} |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
a50209ba | 74 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
27adf597 JK |
75 | |
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
a50209ba | 79 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
80 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
27adf597 | 81 | |
27adf597 JK |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
0553e28b | 87 | %doc ChangeLog source/TODO |
a50209ba | 88 | %attr(2755,root,games) %{_bindir}/%{name} |
a50209ba | 89 | %{_datadir}/games/%{name} |
90 | %{_desktopdir}/%{name}.desktop | |
67320543 | 91 | %{_mandir}/man6/%{name}.6* |
a50209ba | 92 | %{_pixmapsdir}/%{name}.xpm |
0553e28b | 93 | |
94 | %files tools | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_bindir}/asc_demount | |
97 | %attr(755,root,root) %{_bindir}/asc_mapedit | |
98 | %attr(755,root,root) %{_bindir}/asc_mount | |
99 | %attr(755,root,root) %{_bindir}/asc_weaponguide | |
100 | %{_mandir}/man6/asc_demount.6* | |
101 | %{_mandir}/man6/asc_mapedit.6* | |
102 | %{_mandir}/man6/asc_mount.6* | |
103 | %{_mandir}/man6/asc_weaponguide.6* |