2 # - check sounds - doesn't work for me
4 Summary: Advanced Strategic Command - a free, turn based strategy game
5 Summary(pl.UTF-8): Advanced Strategic Command - turowa gra strategiczna
10 Group: X11/Applications/Games/Strategy
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
14 Source1: %{name}.desktop
16 Patch0: %{name}-configure.patch
17 Patch1: %{name}-lua.patch
19 URL: http://www.asc-hq.org/
20 BuildRequires: SDL-devel >= 1.2.2
21 BuildRequires: SDL_image-devel
22 BuildRequires: SDL_mixer-devel >= 1.2
23 BuildRequires: SDL_sound-devel
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: boost-devel >= 1.35.0
27 BuildRequires: bzip2-devel >= 1.0.0
28 BuildRequires: curl-devel >= 7.10.0
29 BuildRequires: expat-devel
30 BuildRequires: freetype-devel
31 BuildRequires: libjpeg-devel
32 BuildRequires: libpng-devel
33 BuildRequires: libsigc++12-devel >= 1.2
34 BuildRequires: libtool >= 2:1.5
35 BuildRequires: lua51-devel
36 BuildRequires: physfs-devel
37 BuildRequires: pkgconfig
38 BuildRequires: wxGTK2-unicode-gl-devel
39 BuildRequires: xvid-devel
41 BuildRequires: zlib-devel
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define specflags -fpermissive
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).
52 %description -l pl.UTF-8
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
55 człowiekiem (przy jednym komputerze, lub przez pocztę).
58 Summary: Tools for ASC
59 Summary(pl.UTF-8): Narzedzia dla ASC
60 Group: X11/Applications/Games/Strategy
63 Map editor and other tools for ASC.
65 %description tools -l pl.UTF-8
66 Edytor map i inne narzędzia dla ASC.
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
76 export CXXFLAGS="%{rpmcxxflags} -std=c++11 -D__EXPORT__="
83 --with-wx-config="wx-gtk2-unicode-config"
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
91 DESTDIR=$RPM_BUILD_ROOT
93 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
94 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
97 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
101 %doc ChangeLog source/TODO
102 %attr(2755,root,games) %{_bindir}/%{name}
103 %{_datadir}/games/%{name}
104 %{_desktopdir}/%{name}.desktop
105 %{_mandir}/man6/%{name}.6*
106 %{_pixmapsdir}/%{name}.xpm
107 %{_datadir}/appdata/asc.appdata.xml
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*