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: aa2a591a2f069a4dae530ff6920303cb
10 Source1: %{name}.desktop
11 Patch0: %{name}-hash.patch
12 Patch1: %{name}-format.patch
13 URL: http://lgames.sourceforge.net/LGeneral
14 BuildRequires: SDL-devel >= 1.1.4
15 BuildRequires: SDL_mixer-devel
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: gettext-tools
19 BuildRequires: sed >= 4.0
20 Requires: SDL >= 1.1.4
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 LGeneral is a turn-based strategy engine heavily inspired by Panzer
25 General. You play single scenarios or whole campaigns turn by turn
26 against a human player or the AI. Entrenchment, rugged defense,
27 defensive fire, surprise contacts, surrender, unit supply, weather
28 influence, reinforcements and other implementations contribute to the
29 tactical and strategic depth of the game.
31 %description -l pl.UTF-8
32 LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
33 General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
34 drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
35 opcji jak na przykład wpływ pogody na warunki walki.
39 #patch0 -p1 # if using updated intl/
42 %{__sed} -i 's@games/@@' configure.in
45 # cannot use gettextize (po/ is hacked), so just
46 cp -f %{_datadir}/gettext/config.rpath .
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
60 DESTDIR=$RPM_BUILD_ROOT
62 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
63 %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/{lgeneral48.png,lgeneral.png}
66 %find_lang %{name} --all-name
69 rm -rf $RPM_BUILD_ROOT
73 %banner %{name} -e <<EOF
75 If you have the orginal Panzer General CD then mount it
76 (e.g., to /mnt/cdrom) and run the following command as root user:
78 lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral
80 If you do not have the orginal Panzer General
81 CD, you can use the abandonware lgeneral-data-pg package
82 by (after installing it) running the following command as root user:
84 lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
91 %doc AUTHORS ChangeLog PanzerGeneral-Guru.txt README.{lgc-pg,lgeneral} TODO
92 %attr(755,root,root) %{_bindir}/lgc-pg
93 %attr(755,root,root) %{_bindir}/lged
94 %attr(755,root,root) %{_bindir}/lgeneral
95 %attr(755,root,root) %{_bindir}/ltrextract
96 %attr(755,root,root) %{_bindir}/shptool
97 %dir %{_datadir}/lgeneral
98 %dir %{_datadir}/lgeneral/ai_modules
99 %dir %{_datadir}/lgeneral/campaigns
100 %{_datadir}/lgeneral/campaigns/PG
101 %{_datadir}/lgeneral/convdata
102 %{_datadir}/lgeneral/gfx
103 %dir %{_datadir}/lgeneral/maps
104 %dir %{_datadir}/lgeneral/music
105 %dir %{_datadir}/lgeneral/nations
106 %dir %{_datadir}/lgeneral/scenarios
107 %dir %{_datadir}/lgeneral/sounds
108 %dir %{_datadir}/lgeneral/terrain
109 %dir %{_datadir}/lgeneral/themes
110 %{_datadir}/lgeneral/themes/default
111 %dir %{_datadir}/lgeneral/units
112 %{_desktopdir}/%{name}.desktop
113 %{_mandir}/man1/lgc-pg.1*
114 %{_mandir}/man6/lgeneral.6*
115 %{_iconsdir}/%{name}.png