%define name pathological %define version 1.1.3 %define release 2mdk Version: %{version} Summary: Logical game Name: %{name} Release: %{release} License: GPL Group: Games/Strategy Source: %{name}-%{version}.tar.bz2 URL: http://pathological.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-buildroot Requires: pygame %description To solve a level, you fill each wheel with four marbles of matching colors. Various board elements such as teleporters, switches, filters, etc., make the game interesting and challenging. New levels can be created using your favorite text editor. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install chmod 755 $RPM_BUILD_ROOT%_libdir/%name/bin/* (cd $RPM_BUILD_ROOT mkdir -p ./usr/lib/menu cat > ./usr/lib/menu/%{name} <<EOF ?package(%{name}):\ command="%_gamesbindir/pathological"\ title="Pathological"\ longtitle="Logical game"\ needs="x11"\ section="More Applications/Games/Strategy" \ icon="strategy_section.png" EOF ) %post %update_menus %postun %update_menus %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %doc README LICENSE %_gamesbindir/* %_mandir/man6/* %_datadir/games/%name %_libdir/%name/bin/* %_prefix/X11R6/include/X11/pixmaps/* %_docdir/%name %_menudir/* /var/games/* %changelog * Sun Mar 20 2005 Michael Scherer <misc@mandrake.org> 1.1.3-2mdk - requires pygame, fix #12744 - fix spec * Tue Feb 10 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.1.3-1mdk - 1.1.3