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