]> git.pld-linux.org Git - packages/lgeneral.git/blame_incremental - lgeneral.spec
- 1.2.1
[packages/lgeneral.git] / lgeneral.spec
... / ...
CommitLineData
1Summary: Panzer General clone
2Summary(pl.UTF-8): Klon gry Panzer General
3Name: lgeneral
4Version: 1.2.1
5Release: 1
6License: GPL v2+
7Group: X11/Applications/Games/Strategy
8Source0: http://downloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
9# Source0-md5: e77c9ba4ef1a38b84146333d85f883d0
10Source1: http://downloads.sourceforge.net/lgeneral/pg-data.tar.gz
11# Source1-md5: 40c4be23f60d1dc732aabe13b58fc5e3
12Source2: %{name}.desktop
13Patch0: %{name}-separator.patch
14URL: http://lgames.sourceforge.net/index.php?project=LGeneral
15BuildRequires: SDL_mixer-devel >= 1.1.4
16BuildRequires: autoconf
17BuildRequires: automake
18BuildRequires: gettext-devel
19BuildRequires: sed >= 4.0
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
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.
29
30%description -l pl.UTF-8
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.
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?
45cp %{_datadir}/gettext/config.rpath .
46%{__make} \
47 ACLOCAL="%{__aclocal}" \
48 AUTOMAKE="%{__automake}"
49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
53
54%{__make} install \
55 DESTDIR=$RPM_BUILD_ROOT
56
57install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
58cp -r pg-data $RPM_BUILD_ROOT%{_datadir}/%{name}
59mv $RPM_BUILD_ROOT%{_iconsdir}/{lgeneral48.png,lgeneral.png}
60
61%find_lang %{name} --all-name
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%post
67if [ "$1" = 1 ]; then
68%banner %{name} -e <<EOF
69NOTE:
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:
72
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
80
81EOF
82fi
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
This page took 0.0796 seconds and 4 git commands to generate.