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