]> git.pld-linux.org Git - packages/lgeneral.git/blame - lgeneral.spec
- explicit autotools usage, verbose files
[packages/lgeneral.git] / lgeneral.spec
CommitLineData
b3f2249f 1Summary: Panzer General clone
2Summary(pl.UTF-8): Klon gry Panzer General
c650c309 3Name: lgeneral
eb978425 4Version: 1.2.2
e5dda96b 5Release: 1
b3f2249f 6License: GPL v2+
7Group: X11/Applications/Games/Strategy
8Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
eb978425 9# Source0-md5: aa2a591a2f069a4dae530ff6920303cb
b3f2249f 10Source1: http://downloads.sourceforge.net/lgeneral/pg-data.tar.gz
11# Source1-md5: 40c4be23f60d1dc732aabe13b58fc5e3
12Source2: %{name}.desktop
232b0ac9
JB
13Patch0: %{name}-hash.patch
14Patch1: %{name}-format.patch
15URL: http://lgames.sourceforge.net/LGeneral
16BuildRequires: SDL-devel >= 1.1.4
17BuildRequires: SDL_mixer-devel
a8ff82fb
PG
18BuildRequires: autoconf
19BuildRequires: automake
73bd1e17 20BuildRequires: gettext-tools
b3f2249f 21BuildRequires: sed >= 4.0
232b0ac9 22Requires: SDL >= 1.1.4
bf5bb915 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
bf5bb915 25%description
c650c309 26LGeneral is a turn-based strategy engine heavily inspired by Panzer
27General. You play single scenarios or whole campaigns turn by turn
28against a human player or the AI. Entrenchment, rugged defense,
29defensive fire, surprise contacts, surrender, unit supply, weather
30influence, reinforcements and other implementations contribute to the
31tactical and strategic depth of the game.
bf5bb915 32
5cccbb9b 33%description -l pl.UTF-8
b3f2249f 34LGeneral jest turową grą strategiczną zainspirowaną przez Panzer
35General. Gracz rozgrywa scenariusze lub całe kampanie przeciwko
36drugiemu graczowi lub komputerowi. Gra posiada dużo zaawansowanych
37opcji jak na przykład wpływ pogody na warunki walki.
bf5bb915 38
39%prep
232b0ac9
JB
40%setup -q -a1
41#patch0 -p1 # if using updated intl/
42%patch1 -p1
43
71cddc6a 44%{__sed} -i 's@games/@@' configure.in
bf5bb915 45
46%build
232b0ac9
JB
47# cannot use gettextize (po/ is hacked), so just
48cp -f %{_datadir}/gettext/config.rpath .
49%{__aclocal}
50%{__autoconf}
51%{__autoheader}
52%{__automake}
a8ff82fb 53%configure
bf5bb915 54
232b0ac9 55%{__make} -j1
bf5bb915 56
57%install
58rm -rf $RPM_BUILD_ROOT
b3f2249f 59install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
bf5bb915 60
450b2351
JB
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
bf5bb915 63
b3f2249f 64install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
b3f2249f 65cp -r pg-data $RPM_BUILD_ROOT%{_datadir}/%{name}
232b0ac9 66%{__mv} $RPM_BUILD_ROOT%{_iconsdir}/{lgeneral48.png,lgeneral.png}
b3f2249f 67
232b0ac9 68# lgeneral,pg domains
b3f2249f 69%find_lang %{name} --all-name
a8ff82fb 70
bf5bb915 71%clean
72rm -rf $RPM_BUILD_ROOT
73
e5dda96b 74%post
75if [ "$1" = 1 ]; then
76%banner %{name} -e <<EOF
77NOTE:
71cddc6a 78If you have the orginal Panzer General CD then mount it
79(e.g., to /mnt/cdrom) and run the following command as root user:
e5dda96b 80
71cddc6a 81 lgc-pg -s /mnt/cdrom/DAT -d /usr/share/lgeneral
82
83If you do not have the orginal Panzer General
84CD, you can use the abandonware pg-data package
85by run the following command as root user:
86
87 lgc-pg -s /usr/share/lgeneral/pg-data -d /usr/share/lgeneral
e5dda96b 88
89EOF
90fi
91
b3f2249f 92%files -f %{name}.lang
bf5bb915 93%defattr(644,root,root,755)
232b0ac9
JB
94%doc AUTHORS ChangeLog PanzerGeneral-Guru.txt README.{lgc-pg,lgeneral} TODO
95%attr(755,root,root) %{_bindir}/lgc-pg
96%attr(755,root,root) %{_bindir}/lged
97%attr(755,root,root) %{_bindir}/lgeneral
98%attr(755,root,root) %{_bindir}/ltrextract
99%attr(755,root,root) %{_bindir}/shptool
100%dir %{_datadir}/lgeneral
101%dir %{_datadir}/lgeneral/ai_modules
102%dir %{_datadir}/lgeneral/campaigns
103%{_datadir}/lgeneral/campaigns/PG
104%{_datadir}/lgeneral/convdata
105%{_datadir}/lgeneral/gfx
106%dir %{_datadir}/lgeneral/maps
107%dir %{_datadir}/lgeneral/music
108%dir %{_datadir}/lgeneral/nations
109%{_datadir}/lgeneral/pg-data
110%dir %{_datadir}/lgeneral/scenarios
111%dir %{_datadir}/lgeneral/sounds
112%dir %{_datadir}/lgeneral/terrain
113%dir %{_datadir}/lgeneral/themes
114%{_datadir}/lgeneral/themes/default
115%dir %{_datadir}/lgeneral/units
450b2351 116%{_desktopdir}/%{name}.desktop
232b0ac9
JB
117%{_mandir}/man1/lgc-pg.1*
118%{_mandir}/man6/lgeneral.6*
7da2c971 119%{_iconsdir}/%{name}.png
This page took 0.09266 seconds and 4 git commands to generate.