X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=lgeneral.spec;h=5ac6b4aa6398573ff04287bf3c444e676b9fbc79;hb=b96f300ae139fead9637df796ec81ee2c3318b88;hp=e1c7a7acbfd06c6f8b2cae119f29c7a72a7493e5;hpb=450b235137350c2b8878db3dcf2a409a51c63d7a;p=packages%2Flgeneral.git diff --git a/lgeneral.spec b/lgeneral.spec index e1c7a7a..5ac6b4a 100644 --- a/lgeneral.spec +++ b/lgeneral.spec @@ -1,20 +1,26 @@ -Summary: LGeneral game -Summary(pl): Gra Linux General +# 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.2beta +Version: 1.3.1 Release: 1 -License: GPL -Group: X11/Applications/Games -Source0: http://dl.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz -# Source0-md5: d89f6b574e0f182f04cd9b069225fc30 -Source1: %{name}.desktop -Patch0: %{name}-inst_dir.patch -Patch1: %{name}-configure_fix.patch -URL: http://lgames.sourceforge.net/ +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: SDL_mixer-devel >= 1.1.4 -Requires: lgeneral-data >= 1.1 +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 @@ -25,55 +31,103 @@ 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 -LGeneral jest turow± gr± strategiczn± zainspirowan± o Panzer General. -Mo¿na graæ scenariusze albo kampanie, przeciwko drugiemu graczowi albo -komputerowi. Gra posiada du¿o zaawansowanych opcji tj. wp³yw pogody na -warunki walki. +%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 +#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} -%{__automake} %{__autoconf} +%{__autoheader} +%{__automake} %configure -%{__make} +%{__make} -j1 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_desktopdir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop +# lgeneral,pg domains +%find_lang %{name} --all-name %clean rm -rf $RPM_BUILD_ROOT -%files +%post +if [ "$1" = 1 ]; then +%banner %{name} -e <