Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 9a55903abe1423d031e8f9d8ac882ad4 > files > 5

BomberInstinct-0.8.9-7mdv2008.0.src.rpm

%define	name	BomberInstinct
%define version 0.8.9
%define release %mkrel 7

Summary:	Kill the other players with bombs that throw flames
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Games/Arcade
Source:		%{name}-%{version}.tar.bz2
Source1:	%{name}-48.png.bz2
Source2:	%{name}-32.png.bz2
Source3:	%{name}-16.png.bz2
URL:		http://bomberinstinct.sourceforge.net/index.html
BuildRoot:	%_tmppath/%{name}-%{version}-%{release}-root
BuildRequires:	libSDL_mixer-devel >= 1.2.0

%description
BomberInstinct is part like Bomberman, because you must kill
the other players with bombs that throw flames vertically and
horizontally, but it's much more strategical because you have to
do with the elements of a maze (arrows, tunnels, teleportations,
and many more...), and with the special powers of each character.
(multiplayer on one computer only)

%prep
%setup -q

%build
%configure	--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir}
		
%make CXXFLAGS="-DNDEBUG %optflags"

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
install -d $RPM_BUILD_ROOT{%{_menudir},%{_liconsdir},%{_iconsdir},%{_miconsdir}}
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%name
?package(%name): \
needs="x11" \
section="More Applications/Games/Arcade" \
title="%name" \
longtitle="Bomberman clone" \
command="%{_gamesbindir}/bi" \
icon="%name.png" xdg="true"
EOF

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=BomberInstinct
Comment=Bomberman clone
Exec=%_gamesbindir/bi
Icon=BomberInstinct
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_liconsdir}/%name.png
bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_iconsdir}/%name.png
bzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_miconsdir}/%name.png

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog LISEZMOI LISEZMOI.Nived README README.Nived  
%doc docs/*.html docs/img scenario.txt 
%{_gamesbindir}/bi
%{_gamesbindir}/nived
%{_gamesbindir}/spred
%{_gamesdatadir}/BomberInstinct
%{_iconsdir}/%name.png
%{_iconsdir}/mini/%name.png
%{_liconsdir}/%name.png
%{_menudir}/%name
%_datadir/applications/mandriva*


%changelog
* Sun Aug 26 2007 Götz Waschk <waschk@mandriva.org> 0.8.9-7mdv2008.0
+ Revision: 71595
- Import BomberInstinct



* Thu Aug 24 2006 Götz Waschk <waschk@mandriva.org> 0.8.9-7mdv2007.0
- xdg menu

* Thu Jun 15 2006 Lenny Cartier <lenny@mandriva.org> 0.8.9-6mdv2007.0
- rebuild

* Sun May 14 2006 Götz Waschk <waschk@mandriva.org> 0.8.9-5mdk
- Rebuild
- use mkrel

* Fri May 13 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.9-4mdk
- Rebuild

* Tue May 11 2004 Götz Waschk <waschk@linux-mandrake.com> 0.8.9-3mdk
- fix menu section

* Wed Jun 25 2003 Götz Waschk <waschk@linux-mandrake.com> 0.8.9-2mdk
- remove redundant buildrequires

* Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 0.8.9-1mdk
- add missing binary
- fix URL
- new version

* Tue Nov 12 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.8.8-4mdk
- from Per Øyvind Karlsen <peroyvind@delonic.no> :
	- Removed obsolete Prefix tag
	- Move stuff to correct places
	- Cleanups

* Fri Aug 16 2002 Götz Waschk <waschk@linux-mandrake.com> 0.8.8-3mdk
- rebuild with new vorbis

* Mon Apr 29 2002 Götz Waschk <waschk@linux-mandrake.com> 0.8.8-2mdk
- rebuild with new alsa 

* Tue Feb 26 2002 Götz Waschk <waschk@linux-mandrake.com> 0.8.8-1mdk
- adapt package for Mandrake