]>
Commit | Line | Data |
---|---|---|
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 | |
7 | Summary: Panzer General clone | |
8 | Summary(pl.UTF-8): Klon gry Panzer General | |
c650c309 | 9 | Name: lgeneral |
2d0e4dde ZU |
10 | Version: 1.2 |
11 | Release: 0.1 | |
b3f2249f | 12 | License: GPL v2+ |
13 | Group: X11/Applications/Games/Strategy | |
14 | Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz | |
2d0e4dde | 15 | # Source0-md5: a34eae8bc2c05cfa81fe9a9994988613 |
b3f2249f | 16 | Source1: http://downloads.sourceforge.net/lgeneral/pg-data.tar.gz |
17 | # Source1-md5: 40c4be23f60d1dc732aabe13b58fc5e3 | |
18 | Source2: %{name}.desktop | |
f31a7090 | 19 | URL: http://lgames.sourceforge.net/index.php?project=LGeneral |
b3f2249f | 20 | BuildRequires: SDL_mixer-devel >= 1.1.4 |
a8ff82fb PG |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
b3f2249f | 23 | BuildRequires: sed >= 4.0 |
bf5bb915 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
bf5bb915 | 26 | %description |
c650c309 | 27 | LGeneral is a turn-based strategy engine heavily inspired by Panzer |
28 | General. You play single scenarios or whole campaigns turn by turn | |
29 | against a human player or the AI. Entrenchment, rugged defense, | |
30 | defensive fire, surprise contacts, surrender, unit supply, weather | |
31 | influence, reinforcements and other implementations contribute to the | |
32 | tactical and strategic depth of the game. | |
bf5bb915 | 33 | |
5cccbb9b | 34 | %description -l pl.UTF-8 |
b3f2249f | 35 | LGeneral jest turową grą strategiczną zainspirowaną przez Panzer |
36 | General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko | |
37 | drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych | |
38 | opcji 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? |
48 | cp %{_datadir}/gettext/config.rpath . | |
49 | %{__make} \ | |
50 | ACLOCAL="%{__aclocal}" \ | |
51 | AUTOMAKE="%{__automake}" | |
bf5bb915 | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
b3f2249f | 55 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
bf5bb915 | 56 | |
450b2351 JB |
57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
bf5bb915 | 59 | |
b3f2249f | 60 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
61 | install lgeneral32.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
62 | cp -r pg-data $RPM_BUILD_ROOT%{_datadir}/%{name} | |
63 | ||
64 | %find_lang %{name} --all-name | |
a8ff82fb | 65 | |
bf5bb915 | 66 | %clean |
67 | rm -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 |