Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > 6566704ae06974ce97476c0be9d43d54 > files > 4

lgeneral-1.2-0.beta2.1mdk.src.rpm

%define	name	lgeneral
%define	version	1.2
%define	dvers	1.1.3
%define	release	0.beta2.1mdk
%define	Summary	A Panzer General clone

Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://lgames.sourceforge.net/index.php?project=LGeneral
Source0:	%{name}-%{version}beta-2.tar.bz2
Source1:	%{name}-data-%{dvers}.tar.bz2
Patch0:		%{name}-1.1.1-reset-player.patch.bz2
License:	GPL
Group:		Games/Strategy
Summary:	%{Summary}
BuildRequires:	SDL_mixer-devel XFree86-devel nas-devel smpeg-devel libogg-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
LGeneral is a turn-based strategy engine heavily inspired by Panzer General.
You play single scenarios or whole campaigns turn by turn against a human
player or the AI. Entrenchment, rugged defense, defensive fire, surprise
contacts, surrender, unit supply, weather influence, reinforcements and other
implementations contribute to the tactical and strategic depth of the game.
 
%prep
%setup -q -a1 -n %{name}-%{version}beta-2
%patch0 -p1 -b .peroyvind

%build
%configure2_5x	--bindir=%{_gamesbindir}
%make CFLAGS="$RPM_OPT_FLAGS `sdl-config --cflags`"
(cd %{name}-data-%{dvers}; %configure)

%install
%{__rm} -rf $RPM_BUILD_ROOT
%makeinstall_std
(cd %{name}-data-%{dvers}; %makeinstall_std)

%{__install} -d $RPM_BUILD_ROOT%{_menudir}
%{__cat} <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" \
		icon=%{name}.png \
		needs="x11" \
		section="Amusement/Strategy" \
		title="LGeneral"\
		longtitle="%{Summary}"
EOF

%{__install} -m644 %{name}16.png -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
%{__install} -m644 %{name}32.png -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
%{__install} -m644 %{name}48.png -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%post
%update_menus

%postun
%clean_menus

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README* TODO
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_menudir}/%{name}
%{_mandir}/man[16]/*
%defattr(755,root,root,755)
%{_gamesbindir}/*

%changelog
* Fri Feb 27 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.2-0.beta2.1mdk
- 1.2beta-2
- fix buildrequires(lib64..)
- compile with $RPM_OPT_FLAGS

* Wed Aug 27 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.1.1-2mdk
- change summary macro to avoid possible conflicts if we were to build
  debug package
- fix segfault after choosing broken "Torch" scenario (P0, fixes #4654,
  though Torch scenarion will still not work for now..)

* Thu Apr 24 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.1.1-1mdk
- initial mdk release