%define name gemdropx %define version 0.9 %define release 4mdk %define Summary Tetris meets Space Invaders Summary: %{Summary} Name: %{name} Version: %{version} Release: %{release} Source0: ftp://ftp.sonic.net/pub/users/nbs/unix/x/gemdropx/gemdropx-%{version}.tar.bz2 License: GPL Packager: Pixel <pixel@mandrakesoft.com> Url: http://newbreedsoftware.com/gemdropx Group: Games/Arcade BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: SDL_mixer-devel XFree86-devel alsa-lib-devel esound-devel ImageMagick Patch: %{name}-0.9-fix-CFLAGS.patch.bz2 %description Gem Drop X is a fast-paced puzzle game where it's your job to clear the screen of gems before they squash you! (You're at the bottom, they're at the top, and they keep coming!) %prep %setup -q %patch0 -p1 chmod a+r -R . rm -rf `find -type d -name .xvpics` %build %make CFLAGS="%{optflags}" DATA_PREFIX=%{_gamesdatadir}/%{name}/ %install rm -rf $RPM_BUILD_ROOT install -D %{name} $RPM_BUILD_ROOT%{_gamesbindir}/%{name} install -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{name} cp -a data/* $RPM_BUILD_ROOT%{_gamesdatadir}/%{name} %{__install} -d $RPM_BUILD_ROOT{%{_liconsdir},%{_miconsdir}} convert data/images/gemdropx-icon.xpm -size 16x16 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png convert data/images/gemdropx-icon.xpm -size 32x32 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png convert data/images/gemdropx-icon.xpm -size 48x48 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png %{__install} -d $RPM_BUILD_ROOT%{_menudir} %{__cat} <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}):command="%{_gamesbindir}/%{name}" \ icon=%{name}.png \ needs="x11" \ section="Amusement/Arcade" \ title="Gem Drop X"\ longtitle="%{Summary}" EOF %post %update_menus %postun %clean_menus %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS.txt CHANGES.txt README.txt %{_gamesdatadir}/%{name} %{_menudir}/%{name} %{_miconsdir}/%{name}.png %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %defattr(755,root,root,755) %{_gamesbindir}/%{name} %changelog * Mon Aug 04 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.9-4mdk - rebuild - move stuff to %%{_gamesbindir} and %%{_gamesdatadir} - drop Prefix tag - added menu item - added icons - use %%make macro - get rid of .xvpics lying around - cosmetics * Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9-3mdk - rebuild * Sun Jul 21 2002 Pixel <pixel@mandrakesoft.com> 0.9-2mdk - recompile against new vorbis stuff * Thu Jun 27 2002 Pixel <pixel@mandrakesoft.com> 0.9-1mdk - new release * Mon Apr 29 2002 Pixel <pixel@mandrakesoft.com> 0.7-9mdk - rebuild for new libasound (alsa) * Mon Jan 21 2002 Stefan van der Eijk <stefan@eijk.nu> 0.7-8mdk - BuildRequires * Thu Sep 13 2001 Stefan van der Eijk <stefan@eijk.nu> 0.7-7mdk - BuildRequires: libSDL-devel * Thu Sep 6 2001 Pixel <pixel@mandrakesoft.com> 0.7-6mdk - rebuild * Mon May 14 2001 Pixel <pixel@mandrakesoft.com> 0.7-5mdk - rebuild with new SDL * Tue Dec 19 2000 Pixel <pixel@mandrakesoft.com> 0.7-4mdk - reuibld for new libSDL_mixer * Wed Nov 29 2000 Pixel <pixel@mandrakesoft.com> 0.7-3mdk - rebuild, build req * Tue Nov 7 2000 Pixel <pixel@mandrakesoft.com> 0.7-2mdk - rebuild * Thu Nov 2 2000 Pixel <pixel@mandrakesoft.com> 0.7-1mdk - initial spec # end of file