Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > e4947002fd78563e331100d09bc52971 > files > 2

gweled-0.4-1mdk.src.rpm

%define name gweled
%define version 0.4
%define release 1mdk

Summary: Clone of Bejeweled, align 3 crystals in a row to make them disappear
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Games/Puzzles
URL: http://sebdelestaing.free.fr/gweled/
BuildRequires: librsvg-devel
BuildRequires: libgnomeui2-devel
BuildRequires: libglade2.0-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

%build
%configure2_5x
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
install -d %buildroot{%_menudir,%_liconsdir,%_miconsdir,%_iconsdir}
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/%name
?package(%name):command="%name" \
icon="%name.png" needs="X11" section="Amusement/Puzzles" \
title="Gweled" longtitle="Clone of Bejeweled"
EOF

#icons
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

%post
touch %_var/lib/games/%name.easy.scores
%update_menus

%postun
%clean_menus

%files
%defattr(-,root,root)
%doc NEWS AUTHORS
%attr(2555, root, games) %_bindir/%name
%_datadir/applications/%name.desktop
%_datadir/pixmaps/%name.png
%_datadir/pixmaps/%name
%_datadir/%name
%attr(664, games, games) %ghost %_var/lib/games/%name.easy.scores
%_iconsdir/%name.png
%_liconsdir/%name.png
%_miconsdir/%name.png
%_menudir/%name

%changelog
* Thu Feb 12 2004 Götz Waschk <waschk@linux-mandrake.com> 0.4-1mdk
- add new files
- fix buildrequires
- new version

* Fri Nov 28 2003 Götz Waschk <waschk@linux-mandrake.com> 0.3-1mdk
- initial package