Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > e7a5aeaec0eff8f1cc8d86703212627b > files > 5

scorched3d-39.1-1mdk.src.rpm

%define	name	scorched3d
%define	oname	Scorched3D
%define version 39.1
%define release 1mdk
%define	Summary	Scorched Earth 3D OpenGL Remake

Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://www.scorched3d.co.uk/
Source0:	http://prdownloads.sourceforge.net/scorched3d/%{oname}-%{version}-src.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
License:	GPL
Group:		Games/Arcade
Summary:	%{Summary}
BuildRequires:	Mesa-common-devel SDL_mixer-devel SDL_net-devel wxGTK2.6-devel
BuildRequires:	openal-devel
BuildRequires:	automake >= 1.7 autoconf2.5
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Scorched is a game based loosely on the classic DOS game Scorche
d Earth "The Mother Of All Games". 

"Scorched Earth is a simple, yet exciting artillery combat game,
based on an auspicious history of artillery games."
(Review of Scorched Earth at ClassicGaming.com)

In its simplest form Scorched is an artillery game.
Tanks take turns to earn money by destroying opponents in an arena.
Scorched attempts to recreate the simple yet addictive game play
of the original game, adding amongst other new features a 3D island
environment and LAN and internet play.

%prep
%setup -q -n scorched
#%patch0 -p1
for i in `find -type d -name CVS`; do rm -rf $i; done

%build
#cd scripts
#perl createAMMakefile.pl
#cd ..
#aclocal-1.7
#automake-1.7 --foreign
#autoconf-2.5x
#gw work around binutils bug, use g++ for the configure call
export CC=g++ 
%configure2_5x	--bindir=%_gamesbindir --datadir=%_gamesdatadir/%name --with-wx-config=%_bindir/wx-config-ansi
%make CC=gcc

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{makeinstall_std}
%{__rm} -rf $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}/{README,documentation}

%{__install} -d $RPM_BUILD_ROOT%{_menudir}
%{__cat} <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):command="%{_gamesbindir}/%{name}" \
		icon=%{name}.png \
		needs="x11" \
		section="More Applications/Games/Arcade" \
		title="Scorched 3D"\
		longtitle="%{Summary}"
EOF

%{__install} %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
%{__install} %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
%{__install} %{SOURCE13} -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 README documentation/* AUTHORS TODO
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_menudir}/%{name}
%defattr(755,root,root,755)
%{_gamesbindir}/*

%changelog
* Wed Aug 31 2005 Götz Waschk <waschk@mandriva.org> 39.1-1mdk
- fix buildrequires
- New release 39.1

* Thu Jun  2 2005 Götz Waschk <waschk@mandriva.org> 38.1-3mdk
- work around broken wx-config

* Tue Apr 26 2005 Götz Waschk <waschk@mandriva.org> 38.1-2mdk
- rebuild for new wxGTK

* Mon Feb 14 2005 Götz Waschk <waschk@linux-mandrake.com> 38.1-1mdk
- New release 38.1

* Sun Dec  5 2004 Goetz Waschk <waschk@linux-mandrake.com> 38-1mdk
- New release 38

* Fri Aug 27 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 37.2-3mdk
- rebuild for new menu

* Mon Jun  7 2004 Götz Waschk <waschk@linux-mandrake.com> 37.2-2mdk
- rebuild for new g++

* Tue Jun 01 2004 Lenny Cartier <lenny@mandrakesoft.com> 37.2-1mdk
- 37.2

* Tue May  4 2004 Götz Waschk <waschk@linux-mandrake.com> 37.1-1mdk
- fix installation
- we really require wxGTK 2.4
- new version

* Thu Jan 15 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 36.2-1mdk
- 36.2
- fix buildrequires

* Wed Dec 10 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 36-2mdk
- update from cvs (after author's advice)

* Mon Dec 08 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 36-1mdk
- build 36
- drop P0 (merged upstream)

* Sun Aug 03 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 35-1mdk
- initial mdk release