# TODO: # - lgeneral-redit: make it installable (source dir paths in main.c, misc.c), build&install # - package addons from http://lgames.sourceforge.net/LGeneral/addons.php (extend lgeneral-scenarios.spec?) Summary: Panzer General clone Summary(pl.UTF-8): Klon gry Panzer General Name: lgeneral Version: 1.3.1 Release: 2 License: GPL v2+ Group: X11/Applications/Games/Strategy Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz # Source0-md5: 7605ccf7eac6ce7a8c36b6db0613ceb6 Patch0: %{name}-desktop.patch Patch1: %{name}-hash.patch URL: http://lgames.sourceforge.net/LGeneral BuildRequires: SDL-devel >= 1.1.4 BuildRequires: SDL_mixer-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-tools BuildRequires: sed >= 4.0 Requires: SDL >= 1.1.4 Suggests: %{name}-tools = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description LGeneral is a turn-based strategy engine heavily inspired by Panzer General. You play single scenarios or whole campaigns turn by turn against a human player or the AI. Entrenchment, rugged defense, defensive fire, surprise contacts, surrender, unit supply, weather influence, reinforcements and other implementations contribute to the tactical and strategic depth of the game. %description -l pl.UTF-8 LGeneral jest turową grą strategiczną zainspirowaną przez Panzer General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych opcji jak na przykład wpływ pogody na warunki walki. %package tools Summary: Tools to manipulate LGeneral data files Summary(pl.UTF-8): Narzędzia do operacji na plikach danych gry LGeneral Group: X11/Applications/Games/Strategy Requires: SDL >= 1.1.4 Conflicts: lgeneral < 1.3.1 %description tools Tools to manipulate LGeneral data files. %description tools -l pl.UTF-8 Narzędzia do operacji na plikach danych gry LGeneral. %prep %setup -q %patch0 -p1 #patch1 -p1 # if using updated intl/ %{__sed} -i 's@games/@@' configure.in %build # cannot use gettextize (po/ is hacked), so just cp -f %{_datadir}/gettext/config.rpath . %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure %{__make} -j1 %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # Needed by addons install -d $RPM_BUILD_ROOT%{_datadir}/lgeneral/gfx/{flags,terrain,units} # lgeneral,pg domains %find_lang %{name} --all-name %clean rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 1 ]; then %banner %{name} -e <