%define name sdlblock %define version 1 %define release 1mdk Summary: 3D tetris clone. Name: %{name} Version: %{version} Release: %{release} # note: this tarball has been converted for unix line endings Source0: %{name}-%{version}.tar.bz2 Patch: sdlblock-1-datadir.patch.bz2 License: GPL Group: Games/Arcade BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} BuildRequires: libSDL_mixer-devel URL: http://sdlblock.sourceforge.net %description This is a 3D tetris game similar Blockout and Xblockout games. The player must place 3D pieces by translations and rotations in order to fill the floor of a pit. %prep %setup -q %patch %build # don't use the macro because of libtoolize ./configure --prefix=%_prefix --bindir=%_gamesbindir --libdir=%_libdir %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std # fix wrong datadir mkdir -p %buildroot%{_gamesdatadir} mv %buildroot%{prefix}/local/share/sdlblock %buildroot%{_gamesdatadir} # menu install -d -m 755 $RPM_BUILD_ROOT%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF ?package(%{name}): \ command="%{_gamesbindir}/%name"\\ needs="X11"\\ section="Amusement/Arcade"\\ icon="arcade_section.png"\\ title="SDLBlock"\\ longtitle="Tetris in three dimensions" EOF %clean rm -rf $RPM_BUILD_ROOT %post %update_menus %postun %clean_menus %files %defattr(-,root,root) %doc README AUTHORS %_gamesbindir/%name %_gamesdatadir/%name %_menudir/%name %changelog * Tue Aug 27 2002 Götz Waschk <waschk@linux-mandrake.com> 1-1mdk - initial package