+# 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
Name: asc
-Version: 1.14.0.0
-Release: 1
+Version: 1.15.3.0
+Release: 0.1
License: GPL
Group: X11/Applications/Games/Strategy
-Source0: http://unc.dl.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz
-# Source0-md5: d0863303a7452226fcefafa5a7d31354
+Source0: http://dl.sourceforge.net/asc-hq/%{name}-source-%{version}.tar.gz
+# Source0-md5: 5b1259915e48dfd9a44d5ac72ceaea6c
Source1: %{name}.desktop
Source2: http://www.asc-hq.org/frontiers.mp3
# Source2-md5: 560f5783836b309906e57e77417f3864
Source3: http://www.asc-hq.org/time_to_strike.mp3
-# Source3-md5: c383139928613c7b081835c3d4a28fa8
+# Source3-md5: f0ab3c633f51430af0445ecaa02e3197
Source4: http://www.asc-hq.org/machine_wars.mp3
-# Source4-md5: f0ab3c633f51430af0445ecaa02e3197
+# Source4-md5: c383139928613c7b081835c3d4a28fa8
URL: http://www.asc-hq.org/
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: SDLmm-devel
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: libsigc++-devel
+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 turn-based strategy game in the tradition of Battle Isle 2/3.
It can be played against the computer or against other human players
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.
+Muzyka do Advanced Strategic Command w formacie MP3.
%prep
%setup -q
#%{__aclocal}
#%{__automake}
#%{__autoconf}
+cp -f /usr/share/automake/config.sub .
+
+DISPLAY=:0
+export DISPLAY
+
%configure
+
%{__make}
%install
%{_applnkdir}/Games/Strategy/*
%files music
+%defattr(644,root,root,755)
%{_datadir}/games/asc/music/*