X-Git-Url: http://git.pld-linux.org/?p=packages%2Fasc.git;a=blobdiff_plain;f=asc.spec;h=d9d70171608503af58da27fc21a8ebd41a81404a;hp=5213bbde3cd837d0f2d0271407c3222c37850852;hb=c7f9653116274e66ea2f1eced5f013f8bcec9ceb;hpb=a50209baf0ea0d56e900a16d6cec77745a999bf2 diff --git a/asc.spec b/asc.spec index 5213bbd..d9d7017 100644 --- a/asc.spec +++ b/asc.spec @@ -1,46 +1,72 @@ # TODO: # - check sounds - doesn't work for me -# - check unpacked files Summary: Advanced Strategic Command - a free, turn based strategy game Summary(pl.UTF-8): Advanced Strategic Command - turowa gra strategiczna Name: asc -Version: 2.0.1.0 -Release: 0.1 +Version: 2.5.0.0 +Release: 7 License: GPL v2+ Group: X11/Applications/Games/Strategy -Source0: http://dl.sourceforge.net/asc-hq/%{name}-%{version}.tar.bz2 -# Source0-md5: 2758e2bbbd5892ccba8d9b4ac5a6d6af +Source0: http://downloads.sourceforge.net/asc-hq/%{name}-%{version}.tar.bz2 +# Source0-md5: 93400834ef6b75343388c1edc772bef9 Source1: %{name}.desktop Source2: %{name}.xpm +Patch0: %{name}-configure.patch +Patch1: %{name}-lua.patch URL: http://www.asc-hq.org/ +BuildRequires: SDL-devel >= 1.2.2 BuildRequires: SDL_image-devel BuildRequires: SDL_mixer-devel >= 1.2 BuildRequires: SDL_sound-devel BuildRequires: autoconf BuildRequires: automake -BuildRequires: boost-regex-devel +BuildRequires: boost-devel >= 1.35.0 +BuildRequires: bzip2-devel >= 1.0.0 +BuildRequires: curl-devel >= 7.10.0 BuildRequires: expat-devel BuildRequires: freetype-devel BuildRequires: libjpeg-devel +BuildRequires: libpng-devel BuildRequires: libsigc++12-devel >= 1.2 -BuildRequires: libtool +BuildRequires: libtool >= 2:1.5 +BuildRequires: lua51-devel BuildRequires: physfs-devel +BuildRequires: pkgconfig +BuildRequires: wxGTK2-unicode-gl-devel +BuildRequires: xvid-devel +BuildRequires: zip +BuildRequires: zlib-devel Obsoletes: asc-music BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define specflags -fpermissive + %description ASC is a turn-based strategy game in the tradition of Battle Isle 2/3. It can be played against the computer or against other human players (either hotseat or by mail). %description -l pl.UTF-8 -ASC jest turową grą strategiczną mającą korzenie w Battle Isle 2/3. -Grając w nią można się zmierzyć z komputerem lub z innym człowiekiem -(przy jednym komputerze, lub przez pocztę). +ASC jest turową grą strategiczną, która posiada korzenie w Battle Isle +2/3. Grając w nią, można się zmierzyć z komputerem lub z innym +człowiekiem (przy jednym komputerze, lub przez pocztę). + +%package tools +Summary: Tools for ASC +Summary(pl.UTF-8): Narzedzia dla ASC +Group: X11/Applications/Games/Strategy + +%description tools +Map editor and other tools for ASC. + +%description tools -l pl.UTF-8 +Edytor map i inne narzędzia dla ASC. %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build %{__libtoolize} @@ -48,7 +74,8 @@ Grając w nią można się zmierzyć z komputerem lub z innym człowiekiem %{__autoconf} %{__autoheader} %{__automake} -%configure +%configure \ + --with-wx-config="wx-gtk2-unicode-config" %{__make} %install @@ -66,11 +93,20 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc ChangeLog source/TODO +%doc ChangeLog source/TODO %attr(2755,root,games) %{_bindir}/%{name} -%attr(755,root,root) %{_bindir}/asc_mapedit %{_datadir}/games/%{name} %{_desktopdir}/%{name}.desktop -%{_mandir}/man6/%{name}.6.gz -%{_mandir}/man6/asc_mapedit.6.gz +%{_mandir}/man6/%{name}.6* %{_pixmapsdir}/%{name}.xpm + +%files tools +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/asc_demount +%attr(755,root,root) %{_bindir}/asc_mapedit +%attr(755,root,root) %{_bindir}/asc_mount +%attr(755,root,root) %{_bindir}/asc_weaponguide +%{_mandir}/man6/asc_demount.6* +%{_mandir}/man6/asc_mapedit.6* +%{_mandir}/man6/asc_mount.6* +%{_mandir}/man6/asc_weaponguide.6*