]> git.pld-linux.org Git - packages/lgeneral.git/blob - lgeneral.spec
- display note after installation
[packages/lgeneral.git] / lgeneral.spec
1 #
2 # NOTE:
3 # To play the game with original Panzer General campaigns and scenarios
4 # we need to run this command as root after install:
5 # lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
6 #
7 Summary:        Panzer General clone
8 Summary(pl.UTF-8):      Klon gry Panzer General
9 Name:           lgeneral
10 Version:        1.2
11 Release:        1
12 License:        GPL v2+
13 Group:          X11/Applications/Games/Strategy
14 Source0:        http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
15 # Source0-md5:  a34eae8bc2c05cfa81fe9a9994988613
16 Source1:        http://downloads.sourceforge.net/lgeneral/pg-data.tar.gz
17 # Source1-md5:  40c4be23f60d1dc732aabe13b58fc5e3
18 Source2:        %{name}.desktop
19 Patch0:         %{name}-separator.patch
20 URL:            http://lgames.sourceforge.net/index.php?project=LGeneral
21 BuildRequires:  SDL_mixer-devel >= 1.1.4
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  sed >= 4.0
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 LGeneral is a turn-based strategy engine heavily inspired by Panzer
29 General. You play single scenarios or whole campaigns turn by turn
30 against a human player or the AI. Entrenchment, rugged defense,
31 defensive fire, surprise contacts, surrender, unit supply, weather
32 influence, reinforcements and other implementations contribute to the
33 tactical and strategic depth of the game.
34
35 %description -l pl.UTF-8
36 LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
37 General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
38 drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
39 opcji jak na przykład wpływ pogody na warunki walki.
40
41 %prep
42 %setup -q -a 1
43 %patch0 -p1
44 %{__sed} -i 's@games/@@' {configure.in,src/misc.c,lgc-pg/misc.c}
45
46 %build
47 %configure
48
49 #Maybe somebody know better way?
50 cp %{_datadir}/gettext/config.rpath .
51 %{__make} \
52         ACLOCAL="%{__aclocal}" \
53         AUTOMAKE="%{__automake}"
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
63 install lgeneral32.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
64 cp -r pg-data $RPM_BUILD_ROOT%{_datadir}/%{name}
65
66 %find_lang %{name} --all-name
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 if [ "$1" = 1 ]; then
73 %banner %{name} -e <<EOF
74 NOTE:
75 To play the game with original Panzer General campaigns and scenarios
76 run this command as root after install:
77
78 lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
79
80 EOF
81 fi
82
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog README.lg* TODO
86 %attr(755,root,root) %{_bindir}/*
87 %{_datadir}/%{name}
88 %{_desktopdir}/%{name}.desktop
89 %{_mandir}/man[16]/*.*
90 %{_pixmapsdir}/%{name}.png
This page took 0.08925 seconds and 3 git commands to generate.