]> git.pld-linux.org Git - packages/lgeneral.git/blob - lgeneral.spec
- separated pg-data to lgeneral-data-pg package
[packages/lgeneral.git] / lgeneral.spec
1 Summary:        Panzer General clone
2 Summary(pl.UTF-8):      Klon gry Panzer General
3 Name:           lgeneral
4 Version:        1.2.2
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:  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)
22
23 %description
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.
30
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.
36
37 %prep
38 %setup -q
39 #patch0 -p1 # if using updated intl/
40 %patch1 -p1
41
42 %{__sed} -i 's@games/@@' configure.in
43
44 %build
45 # cannot use gettextize (po/ is hacked), so just
46 cp -f %{_datadir}/gettext/config.rpath .
47 %{__aclocal}
48 %{__autoconf}
49 %{__autoheader}
50 %{__automake}
51 %configure
52
53 %{__make} -j1
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 %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
63 %{__mv} $RPM_BUILD_ROOT%{_iconsdir}/{lgeneral48.png,lgeneral.png}
64
65 # lgeneral,pg domains
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 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:
77
78         lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral
79
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:
83
84         lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
85
86 EOF
87 fi
88
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
This page took 0.079789 seconds and 4 git commands to generate.