2 # - lgeneral-redit: make it installable (source dir paths in main.c, misc.c), build&install
3 Summary: Panzer General clone
4 Summary(pl.UTF-8): Klon gry Panzer General
9 Group: X11/Applications/Games/Strategy
10 Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
11 # Source0-md5: 7605ccf7eac6ce7a8c36b6db0613ceb6
12 Patch0: %{name}-desktop.patch
13 Patch1: %{name}-hash.patch
14 URL: http://lgames.sourceforge.net/LGeneral
15 BuildRequires: SDL-devel >= 1.1.4
16 BuildRequires: SDL_mixer-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: gettext-tools
20 BuildRequires: sed >= 4.0
21 Requires: SDL >= 1.1.4
22 Suggests: %{name}-tools = %{version}-%{release}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 LGeneral is a turn-based strategy engine heavily inspired by Panzer
27 General. You play single scenarios or whole campaigns turn by turn
28 against a human player or the AI. Entrenchment, rugged defense,
29 defensive fire, surprise contacts, surrender, unit supply, weather
30 influence, reinforcements and other implementations contribute to the
31 tactical and strategic depth of the game.
33 %description -l pl.UTF-8
34 LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
35 General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
36 drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
37 opcji jak na przykład wpływ pogody na warunki walki.
40 Summary: Tools to manipulate LGeneral data files
41 Summary(pl.UTF-8): Narzędzia do operacji na plikach danych gry LGeneral
42 Group: X11/Applications/Games/Strategy
43 Requires: SDL >= 1.1.4
44 Conflicts: lgeneral < 1.3.1
47 Tools to manipulate LGeneral data files.
49 %description tools -l pl.UTF-8
50 Narzędzia do operacji na plikach danych gry LGeneral.
55 #patch1 -p1 # if using updated intl/
57 %{__sed} -i 's@games/@@' configure.in
60 # cannot use gettextize (po/ is hacked), so just
61 cp -f %{_datadir}/gettext/config.rpath .
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
77 %find_lang %{name} --all-name
80 rm -rf $RPM_BUILD_ROOT
84 %banner %{name} -e <<EOF
86 If you have the orginal Panzer General CD then mount it
87 (e.g., to /mnt/cdrom) and run the following command as root user:
89 lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral
91 If you do not have the orginal Panzer General
92 CD, you can use the abandonware lgeneral-data-pg package
93 by (after installing it) running the following command as root user:
95 lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
97 Note: the above commands require %{name}-tools package.
101 %files -f %{name}.lang
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog README.{lgc-pg,lgeneral} TODO
104 %attr(755,root,root) %{_bindir}/lgeneral
105 %dir %{_datadir}/lgeneral
106 %dir %{_datadir}/lgeneral/ai_modules
107 %dir %{_datadir}/lgeneral/campaigns
108 %{_datadir}/lgeneral/campaigns/PG
109 %{_datadir}/lgeneral/gfx
110 %dir %{_datadir}/lgeneral/maps
111 %dir %{_datadir}/lgeneral/music
112 %dir %{_datadir}/lgeneral/nations
113 %dir %{_datadir}/lgeneral/scenarios
114 %dir %{_datadir}/lgeneral/sounds
115 %dir %{_datadir}/lgeneral/terrain
116 %dir %{_datadir}/lgeneral/themes
117 %{_datadir}/lgeneral/themes/default
118 %dir %{_datadir}/lgeneral/units
119 %{_desktopdir}/lgeneral.desktop
120 %{_mandir}/man6/lgeneral.6*
121 %{_iconsdir}/hicolor/48x48/apps/lgeneral.png
124 %defattr(644,root,root,755)
125 %doc lgc-pg/convdata/COPYING
126 %attr(755,root,root) %{_bindir}/lgc-pg
127 %attr(755,root,root) %{_bindir}/lged
128 %attr(755,root,root) %{_bindir}/ltrextract
129 %attr(755,root,root) %{_bindir}/shptool
130 %dir %{_datadir}/lgeneral
131 %{_datadir}/lgeneral/convdata
132 %{_mandir}/man1/lgc-pg.1*