Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release-src > by-pkgid > 0b51affdb07f1ce93ea9d0b9e91bbe1c > files > 6

gweled-0.7-8mdv2010.1.src.rpm

%define name gweled
%define version 0.7
%define release %mkrel 8

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 -p1 -b .ppc
%patch3 -p1 -b .xdg

%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
%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
* Fri Sep 11 2009 Thierry Vignaud <tv@mandriva.org> 0.7-8mdv2010.1
+ Revision: 437840
- rebuild

* Thu Apr 02 2009 Götz Waschk <waschk@mandriva.org> 0.7-7mdv2009.1
+ Revision: 363464
- rediff patch 2
- update patch 3 for bug 49427 (menu category)

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Thu Aug 14 2008 Götz Waschk <waschk@mandriva.org> 0.7-6mdv2009.0
+ Revision: 271848
- fix localstatedir
- update license

  + Thierry Vignaud <tv@mandriva.org>
    - 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 <tv@mandriva.org>
    - 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