]>
Commit | Line | Data |
---|---|---|
aa706cf7 JB |
1 | # TODO: |
2 | # - lgeneral-redit: make it installable (source dir paths in main.c, misc.c), build&install | |
b96f300a | 3 | # - package addons from http://lgames.sourceforge.net/LGeneral/addons.php (extend lgeneral-scenarios.spec?) |
b3f2249f | 4 | Summary: Panzer General clone |
5 | Summary(pl.UTF-8): Klon gry Panzer General | |
c650c309 | 6 | Name: lgeneral |
bd9e6259 | 7 | Version: 1.3.1 |
e5dda96b | 8 | Release: 1 |
b3f2249f | 9 | License: GPL v2+ |
10 | Group: X11/Applications/Games/Strategy | |
11 | Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz | |
bd9e6259 JB |
12 | # Source0-md5: 7605ccf7eac6ce7a8c36b6db0613ceb6 |
13 | Patch0: %{name}-desktop.patch | |
14 | Patch1: %{name}-hash.patch | |
232b0ac9 JB |
15 | URL: http://lgames.sourceforge.net/LGeneral |
16 | BuildRequires: SDL-devel >= 1.1.4 | |
17 | BuildRequires: SDL_mixer-devel | |
a8ff82fb PG |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
73bd1e17 | 20 | BuildRequires: gettext-tools |
b3f2249f | 21 | BuildRequires: sed >= 4.0 |
232b0ac9 | 22 | Requires: SDL >= 1.1.4 |
aa706cf7 | 23 | Suggests: %{name}-tools = %{version}-%{release} |
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 | |
aa706cf7 JB |
40 | %package tools |
41 | Summary: Tools to manipulate LGeneral data files | |
42 | Summary(pl.UTF-8): Narzędzia do operacji na plikach danych gry LGeneral | |
43 | Group: X11/Applications/Games/Strategy | |
44 | Requires: SDL >= 1.1.4 | |
45 | Conflicts: lgeneral < 1.3.1 | |
46 | ||
47 | %description tools | |
48 | Tools to manipulate LGeneral data files. | |
49 | ||
50 | %description tools -l pl.UTF-8 | |
51 | Narzędzia do operacji na plikach danych gry LGeneral. | |
52 | ||
bf5bb915 | 53 | %prep |
799a5c87 | 54 | %setup -q |
bd9e6259 JB |
55 | %patch0 -p1 |
56 | #patch1 -p1 # if using updated intl/ | |
232b0ac9 | 57 | |
71cddc6a | 58 | %{__sed} -i 's@games/@@' configure.in |
bf5bb915 | 59 | |
60 | %build | |
232b0ac9 JB |
61 | # cannot use gettextize (po/ is hacked), so just |
62 | cp -f %{_datadir}/gettext/config.rpath . | |
63 | %{__aclocal} | |
64 | %{__autoconf} | |
65 | %{__autoheader} | |
66 | %{__automake} | |
a8ff82fb | 67 | %configure |
bf5bb915 | 68 | |
232b0ac9 | 69 | %{__make} -j1 |
bf5bb915 | 70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
bf5bb915 | 73 | |
450b2351 JB |
74 | %{__make} install \ |
75 | DESTDIR=$RPM_BUILD_ROOT | |
bf5bb915 | 76 | |
232b0ac9 | 77 | # lgeneral,pg domains |
b3f2249f | 78 | %find_lang %{name} --all-name |
a8ff82fb | 79 | |
bf5bb915 | 80 | %clean |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
e5dda96b | 83 | %post |
84 | if [ "$1" = 1 ]; then | |
85 | %banner %{name} -e <<EOF | |
86 | NOTE: | |
71cddc6a | 87 | If you have the orginal Panzer General CD then mount it |
88 | (e.g., to /mnt/cdrom) and run the following command as root user: | |
e5dda96b | 89 | |
71cddc6a | 90 | lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral |
91 | ||
92 | If you do not have the orginal Panzer General | |
799a5c87 JB |
93 | CD, you can use the abandonware lgeneral-data-pg package |
94 | by (after installing it) running the following command as root user: | |
71cddc6a | 95 | |
96 | lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral | |
e5dda96b | 97 | |
aa706cf7 | 98 | Note: the above commands require %{name}-tools package. |
e5dda96b | 99 | EOF |
100 | fi | |
101 | ||
b3f2249f | 102 | %files -f %{name}.lang |
bf5bb915 | 103 | %defattr(644,root,root,755) |
bd9e6259 | 104 | %doc AUTHORS ChangeLog README.{lgc-pg,lgeneral} TODO |
232b0ac9 | 105 | %attr(755,root,root) %{_bindir}/lgeneral |
232b0ac9 JB |
106 | %dir %{_datadir}/lgeneral |
107 | %dir %{_datadir}/lgeneral/ai_modules | |
108 | %dir %{_datadir}/lgeneral/campaigns | |
109 | %{_datadir}/lgeneral/campaigns/PG | |
232b0ac9 JB |
110 | %{_datadir}/lgeneral/gfx |
111 | %dir %{_datadir}/lgeneral/maps | |
112 | %dir %{_datadir}/lgeneral/music | |
113 | %dir %{_datadir}/lgeneral/nations | |
232b0ac9 JB |
114 | %dir %{_datadir}/lgeneral/scenarios |
115 | %dir %{_datadir}/lgeneral/sounds | |
116 | %dir %{_datadir}/lgeneral/terrain | |
117 | %dir %{_datadir}/lgeneral/themes | |
118 | %{_datadir}/lgeneral/themes/default | |
119 | %dir %{_datadir}/lgeneral/units | |
bd9e6259 | 120 | %{_desktopdir}/lgeneral.desktop |
232b0ac9 | 121 | %{_mandir}/man6/lgeneral.6* |
bd9e6259 | 122 | %{_iconsdir}/hicolor/48x48/apps/lgeneral.png |
aa706cf7 JB |
123 | |
124 | %files tools | |
125 | %defattr(644,root,root,755) | |
126 | %doc lgc-pg/convdata/COPYING | |
127 | %attr(755,root,root) %{_bindir}/lgc-pg | |
128 | %attr(755,root,root) %{_bindir}/lged | |
129 | %attr(755,root,root) %{_bindir}/ltrextract | |
130 | %attr(755,root,root) %{_bindir}/shptool | |
131 | %dir %{_datadir}/lgeneral | |
132 | %{_datadir}/lgeneral/convdata | |
133 | %{_mandir}/man1/lgc-pg.1* |