%define name sdlroids %define version 1.3.4 %define release 4mdk Summary: SDLRoids - an enhanced shoot-the-asteroids Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Games/Arcade Source0: %{name}-%{version}.tar.bz2 URL: http://sourceforge.net/projects/sdlroids/ BuildRoot: %{_tmppath}/%{name}-buildroot %description SDLRoids is essentially an Asteroids clone, but with a few extra features, and some nice game physics. It is based on xhyperoid, which is a UNIX port of the 16-bit Windows game Hyperoid. Major changes from xhyperoid are that it's using SDL for sound and graphics, has a couple of extra powerups and that the shield behaves differently. %prep rm -rf ${RPM_BUILD_ROOT} %setup -q %build %configure --disable-rpath %make %install %makeinstall (cd $RPM_BUILD_ROOT mkdir -p ./usr/lib/menu cat > ./usr/lib/menu/%{name} <<EOF ?package(%{name}):\ command="/usr/bin/sdlroids"\ title="Sdlroids"\ longtitle="Asteroids game"\ needs="x11"\ section="Amusement/Arcade" EOF ) %post %update_menus %postun %clean_menus %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc ChangeLog README README.orig README.xhyperoid COPYING %{_bindir}/sdlroids %{_mandir}/man6/sdlroids* %{_datadir}/sdlroids/* %_menudir/* %changelog * Thu Aug 15 2002 Daouda LO <daouda@mandrakesoft.com> 1.3.4-4mdk - rebuild for new vorbis stuffs. * Mon May 06 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.3.4-3mdk - rebuild against new alsa - fix menu file * Mon Sep 03 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.4-2mdk - rebuild * Fri Mar 30 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.4-1mdk - updated to 1.3.4 * Mon Jan 29 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.3-3mdk - rebuild * Thu Dec 21 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.3.3-2mdk - added menu entry - updated description from David Hedbor <david@hedbor.org> * Tue Nov 28 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.3.3-1mdk - updated to 1.3.3 * Fri Oct 20 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.3.2-1mdk - new in contribs