]>
Commit | Line | Data |
---|---|---|
1 | Summary: Panzer General clone | |
2 | Summary(pl.UTF-8): Klon gry Panzer General | |
3 | Name: lgeneral | |
4 | Version: 1.2.1 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
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) | |
21 | ||
22 | %description | |
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. | |
29 | ||
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. | |
35 | ||
36 | %prep | |
37 | %setup -q -a 1 | |
38 | %patch0 -p1 | |
39 | %{__sed} -i 's@games/@@' configure.in | |
40 | ||
41 | %build | |
42 | %configure | |
43 | ||
44 | #Maybe somebody know better way? | |
45 | cp %{_datadir}/gettext/config.rpath . | |
46 | %{__make} \ | |
47 | ACLOCAL="%{__aclocal}" \ | |
48 | AUTOMAKE="%{__automake}" | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
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} | |
60 | ||
61 | %find_lang %{name} --all-name | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post | |
67 | if [ "$1" = 1 ]; then | |
68 | %banner %{name} -e <<EOF | |
69 | NOTE: | |
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: | |
72 | ||
73 | lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral | |
74 | ||
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: | |
78 | ||
79 | lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral | |
80 | ||
81 | EOF | |
82 | fi | |
83 | ||
84 | %files -f %{name}.lang | |
85 | %defattr(644,root,root,755) | |
86 | %doc AUTHORS ChangeLog README.lg* TODO | |
87 | %attr(755,root,root) %{_bindir}/* | |
88 | %{_datadir}/%{name} | |
89 | %{_desktopdir}/%{name}.desktop | |
90 | %{_mandir}/man[16]/*.* | |
91 | %{_iconsdir}/%{name}.png |