X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=asc.spec;h=7a6777e27cd021355c3746e3266e7a898ac82524;hb=ced97a4878e592f963177219a1bf9e98e9cee209;hp=c26db0ebabd0688d6dbdfef3236a01036466f1ac;hpb=ddddf6da7b7bb90d588943070152e6cccbad3a59;p=packages%2Fasc.git diff --git a/asc.spec b/asc.spec index c26db0e..7a6777e 100644 --- a/asc.spec +++ b/asc.spec @@ -1,17 +1,23 @@ +# TODO: +# - check build +# package probalby Req: paragui1-devel not paragui-devel + Summary: Advanced Strategic Command - a free, turn based strategy game -Summary(pl): Advanced Strategic Command - turowa gra strategiczna +Summary(pl.UTF-8): Advanced Strategic Command - turowa gra strategiczna Name: asc -Version: 1.10.2 -Release: 3 +Version: 1.15.3.0 +Release: 0.1 License: GPL Group: X11/Applications/Games/Strategy Source0: http://dl.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz -# Source0-md5: 61aca2f50c851c440c7d76b356d3d28b +# Source0-md5: 5b1259915e48dfd9a44d5ac72ceaea6c Source1: %{name}.desktop -Source2: %{name}-mp3.tar.bz2 -# Source2-md5: a310728dc2919cb1f4f6c321c885ae61 -Patch0: %{name}-ac_fix.patch -Patch1: %{name}-am_fix.patch +Source2: http://www.asc-hq.org/frontiers.mp3 +# Source2-md5: 560f5783836b309906e57e77417f3864 +Source3: http://www.asc-hq.org/time_to_strike.mp3 +# Source3-md5: f0ab3c633f51430af0445ecaa02e3197 +Source4: http://www.asc-hq.org/machine_wars.mp3 +# Source4-md5: c383139928613c7b081835c3d4a28fa8 URL: http://www.asc-hq.org/ BuildRequires: SDL-devel BuildRequires: SDL_image-devel @@ -19,47 +25,47 @@ BuildRequires: SDL_mixer-devel BuildRequires: SDLmm-devel BuildRequires: autoconf BuildRequires: automake +BuildRequires: libsigc++12-devel BuildRequires: libtool -BuildRequires: paragui-devel +BuildRequires: paragui-devel >= 1.0.1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _datadir /usr/share - %description -ASC is a free, turn based strategy game. It is designed in the -tradition of the Battle Isle series from Bluebyte and is currently -available for Windows and Linux. +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 -ASC jest darmow±, turow± gr± strategiczn±. Zosta³a zaprojektowana -w tradycji serii Battle Isle firmy Bluebyte. Obecnie jest dostêpna -pod Windows i Linuksa. +%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ę). %package music Summary: Music for Advanced Strategic Command -Summary(pl): Muzyka do Advanced Strategic Command +Summary(pl.UTF-8): Muzyka do Advanced Strategic Command Group: X11/Applications/Games/Strategy Requires: %{name} %description music -Music for Advanced Strategic Command in mp3 format. +Music for Advanced Strategic Command in MP3 format. -%description music -l pl -Muzyka do Advanced Strategic Command w formacie mp3. +%description music -l pl.UTF-8 +Muzyka do Advanced Strategic Command w formacie MP3. %prep -%setup -q -a 2 -%patch0 -%patch1 +%setup -q + +cp %{SOURCE2} %{SOURCE3} %{SOURCE4} data/music %build -%{__libtoolize} -%{__aclocal} -%{__automake} -%{__autoconf} -%configure \ - CPPFLAGS="-I%{_includedir}" LDFLAGS="-L%{_libdir}" \ - --disable-paraguitest +#%{__libtoolize} +#%{__aclocal} +#%{__automake} +#%{__autoconf} +cp -f /usr/share/automake/config.sub . + +%configure + %{__make} %install @@ -69,24 +75,25 @@ install -d $RPM_BUILD_ROOT{%{_applnkdir}/Games/Strategy,%{_mandir}/man6,%{_docdi %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy -install doc/manpages/*.6 $RPM_BUILD_ROOT%{_mandir}/man6 +install data/legacy.con $RPM_BUILD_ROOT%{_datadir}/games/asc -# bug in make install, so we do it here -install data/*.con $RPM_BUILD_ROOT%{_datadir}/games/asc +install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games/Strategy %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc TODO README AUTHORS ChangeLog doc/graphics doc/*.html doc/*.css -%attr(2755,root,games) %{_bindir}/* +%doc AUTHORS ChangeLog source/TODO doc/graphics doc/*.{html,css} +%attr(2755,root,games) %{_bindir}/asc +%attr(755,root,root) %{_bindir}/asc_mapedit %dir %{_datadir}/games/asc +%dir %{_datadir}/games/asc/music +%{_datadir}/games/asc/*.gfx %{_datadir}/games/asc/*.zip %{_datadir}/games/asc/*.con %{_applnkdir}/Games/Strategy/* -%{_mandir}/man6/* %files music -%{_datadir}/games/asc/music +%defattr(644,root,root,755) +%{_datadir}/games/asc/music/*