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