]> git.pld-linux.org Git - packages/asc.git/blame - asc.spec
rebuild with wxWidgets 3.2
[packages/asc.git] / asc.spec
CommitLineData
89e235bb 1# TODO:
a50209ba 2# - check sounds - doesn't work for me
89e235bb 3
27adf597 4Summary: Advanced Strategic Command - a free, turn based strategy game
ced97a48 5Summary(pl.UTF-8): Advanced Strategic Command - turowa gra strategiczna
27adf597 6Name: asc
9fb206e3 7Version: 2.8.0.2
71b26860 8Release: 3
a50209ba 9License: GPL v2+
27adf597 10Group: X11/Applications/Games/Strategy
9fb206e3
JR
11#Source0: https://github.com/ValHaris/asc-hq/archive/ASC%{dashversion}/%{name}-%{version}.tar.gz
12Source0: http://terdon.asc-hq.org/asc/builds/%{name}-%{version}.tar.bz2
13# Source0-md5: f2dfaa794a3ba800f4095815be5b8009
27adf597 14Source1: %{name}.desktop
a50209ba 15Source2: %{name}.xpm
0553e28b 16Patch0: %{name}-configure.patch
9db03122 17Patch1: %{name}-lua.patch
9fb206e3 18Patch2: gcc10.patch
ab7992a7 19URL: http://www.asc-hq.org/
0553e28b 20BuildRequires: SDL-devel >= 1.2.2
27adf597 21BuildRequires: SDL_image-devel
a50209ba 22BuildRequires: SDL_mixer-devel >= 1.2
23BuildRequires: SDL_sound-devel
0553e28b 24BuildRequires: autoconf
25BuildRequires: automake
5db7b0b5 26BuildRequires: boost-devel >= 1.35.0
e7358786 27BuildRequires: bzip2-devel >= 1.0.0
0553e28b 28BuildRequires: curl-devel >= 7.10.0
a50209ba 29BuildRequires: expat-devel
30BuildRequires: freetype-devel
31BuildRequires: libjpeg-devel
e7358786 32BuildRequires: libpng-devel
a50209ba 33BuildRequires: libsigc++12-devel >= 1.2
0553e28b 34BuildRequires: libtool >= 2:1.5
9db03122 35BuildRequires: lua51-devel
a50209ba 36BuildRequires: physfs-devel
e7358786 37BuildRequires: pkgconfig
9db03122 38BuildRequires: wxGTK2-unicode-gl-devel
76c455e5 39BuildRequires: xvid-devel
40BuildRequires: zip
0553e28b 41BuildRequires: zlib-devel
a50209ba 42Obsoletes: asc-music
27adf597
JK
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
9aa2725e
JR
45%define specflags -fpermissive
46
27adf597 47%description
e8e0b55f 48ASC is a turn-based strategy game in the tradition of Battle Isle 2/3.
49It 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 53ASC jest turową grą strategiczną, która posiada korzenie w Battle Isle
542/3. Grając w nią, można się zmierzyć z komputerem lub z innym
0553e28b 55człowiekiem (przy jednym komputerze, lub przez pocztę).
56
57%package tools
58Summary: Tools for ASC
59Summary(pl.UTF-8): Narzedzia dla ASC
60Group: X11/Applications/Games/Strategy
61
62%description tools
63Map editor and other tools for ASC.
64
65%description tools -l pl.UTF-8
9db03122 66Edytor 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 76export 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
87rm -rf $RPM_BUILD_ROOT
a50209ba 88install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
27adf597
JK
89
90%{__make} install \
91 DESTDIR=$RPM_BUILD_ROOT
92
3fb07c82
JR
93cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
94cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
27adf597 95
27adf597
JK
96%clean
97rm -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*
This page took 0.078744 seconds and 4 git commands to generate.