%define name gweled %define version 0.7 %define release %mkrel 6 Summary: Clone of Bejeweled, align 3 crystals in a row to make them disappear Name: %{name} Version: %{version} Release: %{release} Source0: http://sebdelestaing.free.fr/gweled/Release/%{name}-%{version}.tar.bz2 # gw debian patches: # gw fix double free Patch: gweled-0.7-fix-double-free.patch # gw don't load mikmod's disk writer output driver Patch1: gweled-0.7-mikmod-disable-disk-writers.patch # gw use gint instead of gchar for the board Patch2: gweled-ppc.diff Patch3: gweled-0.7-desktopentry.patch License: GPLv2+ Group: Games/Puzzles URL: http://sebdelestaing.free.fr/gweled/ BuildRequires: librsvg-devel BuildRequires: libgnomeui2-devel BuildRequires: libglade2.0-devel BuildRequires: libmikmod-devel BuildRequires: ImageMagick BuildRoot: %{_tmppath}/%{name}-buildroot %description Gweled is a Gnome version of a popular PalmOS/Windows/Java game called "Bejeweled" or "Diamond Mine". The aim of the game is to make alignment of 3 or more gems, both vertically or horizontally by swapping adjacent gems. The game ends when there are no possible moves left. %prep %setup -q %patch -p1 -b .double-free %patch1 -p1 -b .disk-writer %patch2 -p0 -b .ppc %patch3 -p1 %build export LDFLAGS="-export-dynamic" %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std #icons mkdir -p %buildroot/{%_liconsdir,%_miconsdir} ln -s %_datadir/pixmaps/%name.png %buildroot/%_liconsdir convert -scale 32x32 %name.png %buildroot/%_iconsdir/%name.png convert -scale 16x16 %name.png %buildroot/%_miconsdir/%name.png %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post %update_menus %endif %if %mdkversion < 200900 %postun %clean_menus %endif %files %defattr(-,root,root) %doc NEWS AUTHORS %attr(2555, root, games) %_bindir/%name %_datadir/applications/%name.desktop %_datadir/sounds/%name %_datadir/pixmaps/%name.png %_datadir/pixmaps/%name %_datadir/%name %attr(664, games, games) %_localstatedir/games/%name.easy.scores %_iconsdir/%name.png %_liconsdir/%name.png %_miconsdir/%name.png %changelog * Thu Aug 14 2008 Götz Waschk <waschk@mandriva.org> 0.7-6mdv2009.0 + Revision: 271848 - fix localstatedir - update license + Thierry Vignaud <tvignaud@mandriva.com> - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Thu Jan 31 2008 Götz Waschk <waschk@mandriva.org> 0.7-5mdv2008.1 + Revision: 160647 - fix desktop entry - fix installation + Thierry Vignaud <tvignaud@mandriva.com> - drop old menu - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Wed Jan 31 2007 Götz Waschk <waschk@mandriva.org> 0.7-4mdv2007.0 + Revision: 115648 - Import gweled * Wed Jan 31 2007 Götz Waschk <waschk@mandriva.org> 0.7-4mdv2007.1 - port fixes from debian - build with -export-dynamic * Thu Aug 03 2006 Götz Waschk <waschk@mandriva.org> 0.7-3mdv2007.0 - xdg menu * Thu Oct 06 2005 Götz Waschk <waschk@mandriva.org> 0.7-2mdk - fix buildrequires * Tue Oct 04 2005 Götz Waschk <waschk@mandriva.org> 0.7-1mdk - fix file list - drop patch - New release 0.7 * Wed Dec 01 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-1mdk - fix score dir - New release 0.6 * Wed Sep 01 2004 Götz Waschk <waschk@linux-mandrake.com> 0.5-1mdk - add source URL - New release 0.5 * Sat Apr 10 2004 Götz Waschk <waschk@linux-mandrake.com> 0.4-2mdk - rebuild for new croco * Thu Feb 12 2004 Götz Waschk <waschk@linux-mandrake.com> 0.4-1mdk - add new files - fix buildrequires - new version