]> git.pld-linux.org Git - packages/lgeneral.git/blame - lgeneral.spec
- merged changes from DEVEL
[packages/lgeneral.git] / lgeneral.spec
CommitLineData
b3f2249f 1# NOTE:
2# To play the game with original Panzer General campaigns and scenarios
3# we need to run this command as root after install:
4# lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
5
6%define _bver 14
7Summary: Panzer General clone
8Summary(pl.UTF-8): Klon gry Panzer General
c650c309 9Name: lgeneral
2d0e4dde
ZU
10Version: 1.2
11Release: 0.1
b3f2249f 12License: GPL v2+
13Group: X11/Applications/Games/Strategy
14Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
2d0e4dde 15# Source0-md5: a34eae8bc2c05cfa81fe9a9994988613
b3f2249f 16Source1: http://downloads.sourceforge.net/lgeneral/pg-data.tar.gz
17# Source1-md5: 40c4be23f60d1dc732aabe13b58fc5e3
18Source2: %{name}.desktop
f31a7090 19URL: http://lgames.sourceforge.net/index.php?project=LGeneral
b3f2249f 20BuildRequires: SDL_mixer-devel >= 1.1.4
a8ff82fb
PG
21BuildRequires: autoconf
22BuildRequires: automake
b3f2249f 23BuildRequires: sed >= 4.0
bf5bb915 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
bf5bb915 26%description
c650c309 27LGeneral is a turn-based strategy engine heavily inspired by Panzer
28General. You play single scenarios or whole campaigns turn by turn
29against a human player or the AI. Entrenchment, rugged defense,
30defensive fire, surprise contacts, surrender, unit supply, weather
31influence, reinforcements and other implementations contribute to the
32tactical and strategic depth of the game.
bf5bb915 33
5cccbb9b 34%description -l pl.UTF-8
b3f2249f 35LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
36General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
37drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
38opcji jak na przykład wpływ pogody na warunki walki.
bf5bb915 39
40%prep
b3f2249f 41%setup -q -a 1
42%{__sed} -i 's@games/@@' {configure.in,src/misc.c,lgc-pg/misc.c}
bf5bb915 43
44%build
a8ff82fb 45%configure
bf5bb915 46
b3f2249f 47#Maybe somebody know better way?
48cp %{_datadir}/gettext/config.rpath .
49%{__make} \
50 ACLOCAL="%{__aclocal}" \
51 AUTOMAKE="%{__automake}"
bf5bb915 52
53%install
54rm -rf $RPM_BUILD_ROOT
b3f2249f 55install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
bf5bb915 56
450b2351
JB
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
bf5bb915 59
b3f2249f 60install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
61install lgeneral32.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
62cp -r pg-data $RPM_BUILD_ROOT%{_datadir}/%{name}
63
64%find_lang %{name} --all-name
a8ff82fb 65
bf5bb915 66%clean
67rm -rf $RPM_BUILD_ROOT
68
b3f2249f 69%files -f %{name}.lang
bf5bb915 70%defattr(644,root,root,755)
b3f2249f 71%doc AUTHORS ChangeLog README.lg* TODO
bf5bb915 72%attr(755,root,root) %{_bindir}/*
b3f2249f 73%{_datadir}/%{name}
450b2351 74%{_desktopdir}/%{name}.desktop
b3f2249f 75%{_mandir}/man[16]/*.*
76%{_pixmapsdir}/%{name}.png
This page took 0.049715 seconds and 4 git commands to generate.