1 Summary: Panzer General clone
2 Summary(pl.UTF-8): Klon gry Panzer General
7 Group: X11/Applications/Games/Strategy
8 Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
9 # Source0-md5: e77c9ba4ef1a38b84146333d85f883d0
10 Source1: http://downloads.sourceforge.net/lgeneral/pg-data.tar.gz
11 # Source1-md5: 40c4be23f60d1dc732aabe13b58fc5e3
12 Source2: %{name}.desktop
13 Patch0: %{name}-separator.patch
14 URL: http://lgames.sourceforge.net/index.php?project=LGeneral
15 BuildRequires: SDL_mixer-devel >= 1.1.4
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: gettext-devel
19 BuildRequires: sed >= 4.0
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 LGeneral is a turn-based strategy engine heavily inspired by Panzer
24 General. You play single scenarios or whole campaigns turn by turn
25 against a human player or the AI. Entrenchment, rugged defense,
26 defensive fire, surprise contacts, surrender, unit supply, weather
27 influence, reinforcements and other implementations contribute to the
28 tactical and strategic depth of the game.
30 %description -l pl.UTF-8
31 LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
32 General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
33 drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
34 opcji jak na przykład wpływ pogody na warunki walki.
39 %{__sed} -i 's@games/@@' configure.in
44 #Maybe somebody know better way?
45 cp %{_datadir}/gettext/config.rpath .
47 ACLOCAL="%{__aclocal}" \
48 AUTOMAKE="%{__automake}"
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
55 DESTDIR=$RPM_BUILD_ROOT
57 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
58 cp -r pg-data $RPM_BUILD_ROOT%{_datadir}/%{name}
59 mv $RPM_BUILD_ROOT%{_iconsdir}/{lgeneral48.png,lgeneral.png}
61 %find_lang %{name} --all-name
64 rm -rf $RPM_BUILD_ROOT
68 %banner %{name} -e <<EOF
70 If you have the orginal Panzer General CD then mount it
71 (e.g., to /mnt/cdrom) and run the following command as root user:
73 lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral
75 If you do not have the orginal Panzer General
76 CD, you can use the abandonware pg-data package
77 by run the following command as root user:
79 lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
84 %files -f %{name}.lang
85 %defattr(644,root,root,755)
86 %doc AUTHORS ChangeLog README.lg* TODO
87 %attr(755,root,root) %{_bindir}/*
89 %{_desktopdir}/%{name}.desktop
90 %{_mandir}/man[16]/*.*
91 %{_iconsdir}/%{name}.png