X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freelords.spec;h=43a161ad42fb0581d590f121ee2fd2c8b2f5e832;hb=HEAD;hp=c771bceb9d5d692b44ca0be5baf70280942d139c;hpb=9874fcb3c282c3ecb04dca8f56b58332c807727b;p=packages%2Ffreelords.git diff --git a/freelords.spec b/freelords.spec index c771bce..43a161a 100644 --- a/freelords.spec +++ b/freelords.spec @@ -1,59 +1,81 @@ -Summary: Strategy game -Summary(pl): Gra strategiczna +Summary: Turn-based strategy game +Summary(pl.UTF-8): Turowa gra strategiczna Name: freelords -Version: 0.2.3 -Release: 1 -License: GPL +Version: 0.3.8 +Release: 2 +License: GPL v2+ Group: X11/Applications/Games/Strategy -Source0: http://download.freelords.org/sources/%{name}-%{version}.tar.bz2 +Source0: http://dl.sourceforge.net/freelords/%{name}-%{version}.tar.bz2 +# Source0-md5: e8b0047cd9410d0b33607a206e816c50 Source1: %{name}rc.conf -URL: http://www.freelords.org/ -BuildRequires: SDL_image-devel +Patch0: %{name}-configure_in.patch +Patch1: %{name}-types.patch +Patch2: %{name}-undefined_macros.patch +Patch3: %{name}-desktop.patch +Patch4: %{name}-mkinstalldirs.patch +Patch5: %{name}-makefileam.patch +URL: http://freelords.sourceforge.net/ +BuildRequires: SDL_image-devel >= 1.2.0 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libsigc++12-devel >= 1.2.1 BuildRequires: libstdc++-devel -BuildRequires: libsigc++-devel >= 1.2.1 -BuildRequires: paragui-devel +BuildRequires: libtool +BuildRequires: paragui-devel >= 1.1.8 +BuildRequires: pkgconfig BuildRequires: qt-devel >= 2.2.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) - %description FreeLords is a turn-based strategy game. There can be various goals to achieve like e.g.: destroying all enemies, gathering a specific amount of money, occupying a certain city, ... -%description -l pl -FreeLords to gra strategiczna z podzia³em na tury. Cele gry mog± byæ -ró¿ne np. zniszczenie wszystkich przeciwników, zebranie okre¶lonej -sumy pieniêdzy, okupacja okre¶lonego miasta i inne. +%description -l pl.UTF-8 +FreeLords to turowa gra strategiczna wzorowana na klasycznej grze +Warlords. Cele gry mogą być różne np. zniszczenie wszystkich +przeciwników, zebranie określonej sumy pieniędzy, okupacja określonego +miasta i inne. %prep %setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 %build %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} %{__automake} - %configure - -%{__make} +%{__make} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir}} -install -d $RPM_BUILD_ROOT/etc +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -install %{SOURCE1} $RPM_BUILD_ROOT/etc/freelordsrc -%{__make} DESTDIR=$RPM_BUILD_ROOT install +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/freelordsrc +install dat/various/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.lang %defattr(644,root,root,755) -%doc doc/* AUTHORS ChangeLog TODO -%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/* -%attr(755,root,root) %{_bindir}/* +%doc doc/* AUTHORS ChangeLog NEWS TODO +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freelordsrc +%attr(755,root,root) %{_bindir}/freelords +%attr(755,root,root) %{_bindir}/freelords_editor +%attr(755,root,root) %{_bindir}/freelords_server %{_datadir}/%{name} +%{_desktopdir}/%{name}.desktop +%{_pixmapsdir}/%{name}.png