%define _default_patch_fuzz 2 Name: gweled Version: 0.7 Release: 17.1 Summary: Swapping gem game Group: Amusements/Games License: GPLv2+ URL: http://sebdelestaing.free.fr/gweled/ Source0: http://sebdelestaing.free.fr/gweled/Release/gweled-%{version}.tar.gz Patch0: %{name}-Makefile.patch Patch1: %{name}-Sample_Free.patch Patch2: %{name}-ppc.diff Patch3: %{name}-mikmod-disable-disk-writers.diff # patch4 and 5 taken from Ubuntu; https://bugs.launchpad.net/ubuntu/+source/gweled/+bug/90499 Patch4: %{name}-disable-music.diff Patch5: %{name}-xdg_pref.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libgnomeui-devel >= 2.0.0 BuildRequires: librsvg2-devel >= 2.0.0 BuildRequires: libcroco-devel >= 0.3.0 BuildRequires: mikmod-devel BuildRequires: desktop-file-utils %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 %patch0 -p0 -b .patch0 %patch1 -p0 -b .patch1 # the next two were extracted from the debian package; I asked upstream to # apply them, but got no reply # http://ftp.debian.org/debian/pool/main/g/gweled/gweled_0.7-2.diff.gz %patch2 -p0 -b .patch2 %patch3 -p1 -b .patch3 %patch4 -p1 -b .patch4 %patch5 -p1 -b .patch5 %build export LDFLAGS="${LDFLAGS} -lm -Wl,--export-dynamic " %configure echo "Encoding=UTF-8" >> gweled.desktop mv gweled.desktop gweled.desktop.old iconv --from-code=ISO-8859-1 --to-code=UTF-8 <gweled.desktop.old > gweled.desktop make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install --vendor fedora --delete-original \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ --add-category X-Fedora,LogicGame \ --remove-category Application \ ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop mkdir $RPM_BUILD_ROOT%{_localstatedir}/lib/ mv $RPM_BUILD_ROOT%{_localstatedir}/games/ $RPM_BUILD_ROOT%{_localstatedir}/lib/ # gweled.timed.scores not shipped in 0.7, but needed cp -p $RPM_BUILD_ROOT%{_localstatedir}/lib/games/gweled.easy.scores $RPM_BUILD_ROOT%{_localstatedir}/lib/games/gweled.timed.scores %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS %attr(2551,root,games) %{_bindir}/%{name} %attr(0664,games,games) %{_localstatedir}/lib/games/* %{_datadir}/applications/fedora-%{name}.desktop %{_datadir}/pixmaps/* %{_datadir}/%{name}/ %{_datadir}/sounds/%{name}/ %changelog * Sat Feb 13 2010 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0.7-17 - add another patch as suggested in #544575#3 - add -lm to linker flags for DSOLinkChange stuff from F13 * Tue Feb 09 2010 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0.7-16 - add patch from to disable music as requested in #544575 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-15.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-14.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 13 2009 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0.7-13 - remove Application, add LogicGame to desktop file * Tue Sep 02 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0.7-12 - define _default_patch_fuzz 2 * Sat Feb 09 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0.7-11 - rebuilt (again, this time for new mikmod) * Sat Feb 09 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0.7-10 - rebuilt * Fri Aug 03 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - Update License field due to the "Licensing guidelines changes" * Thu Apr 19 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-9 - remove dist in devel - rebuild for new mikmod * Sat Mar 17 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-8 - create gweled.timed.scores manually, fixes 232184 * Sat Feb 24 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-7 - Add gweled-ppc.diff and gweled-mikmod-disable-disk-writers.diff from debian package; the later fixes #227984 * Tue Aug 29 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-6 - Rebuild for devel * Sun Mar 26 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-5 - Add LDFLAGS="-Wl,--export-dynamic" (thx to Kevin Kofler for the hint) * Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-4 - Rebuild for Fedora Extras 5 * Sun Jan 29 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-3 - Fix build in devel (mv behaviour changed) * Tue Oct 05 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-2 - Use dist * Tue Oct 04 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0.7-1 - Update to 0.7 - drop gcc4 patch (upstream now) - Update Makefile-patch - add Sample_Free.patch to avoid double free on exit (with help from adrianr) - score file must not be conffile * Wed Apr 13 2005 Adrian Reber <adrian@lisas.de> - 0.6-3 - fixed gcc4 errors - removed empty README file - fixed segfault caused by: call to __builtin___memset_chk will always overflow destination buffer * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - rebuilt * Tue Aug 31 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:0.6-1 - Update to 0.6 - Remove highscore workaround - Add Makefile patch - Don't overwrite highscores during update * Tue Aug 31 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:0.5-0.fdr.1 - Update to 0.5 - Add highscorce workaround * Thu Jan 15 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:0.4-0.fdr.2 - Own dirs correctly - BuildRequires desktop-file-utils * Fri Jan 09 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:0.4-0.fdr.1 - Update to 0.4 - Correct permissions so highscores work - Add UTF-8 to desktop file * Thu Nov 27 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:0.3-0.fdr.1 - Initial RPM release.