%define version 1.0.0 %define release %mkrel 5 Summary: Simple puzzle game, switch off all the lights on a 5x5 board Name: glightoff Version: %{version} Release: %{release} License: GPL Group: Games/Puzzles URL: http://glightoff.sourceforge.net/ Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: gtk2-devel >= 2.6 BuildRequires: ImageMagick BuildRequires: perl-XML-Parser # see bug 18528, Requires: librsvg %description GLightOff is a simple (but not so easy to solve!) puzzle game. The goal is to switch off all the lights on the 5x5 board. %prep %setup -q %build %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std # icons mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir} install -D -m 644 glightoff.png %{buildroot}%{_liconsdir}/%{name}.png convert -geometry 32x32 glightoff.png %{buildroot}%{_iconsdir}/%{name}.png convert -geometry 16x16 glightoff.png %{buildroot}%{_miconsdir}/%{name}.png # menu entry mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/ cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop [Desktop Entry] Type=Application Exec=%{_bindir}/%{name} Icon=%{name} Comment=Switch all lights off in game board Categories=Game;LogicGame; Name=GLightOff EOF %find_lang %{name} %clean rm -rf %{buildroot} %if %mdkversion < 200900 %post %update_menus %endif %if %mdkversion < 200900 %postun %clean_menus %endif %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS README %{_bindir}/* %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/* %{_datadir}/applications/mandriva-%{name}.desktop %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_miconsdir}/%{name}.png %changelog * Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.0-5mdv2009.0 + Revision: 246175 - 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 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Dec 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.0.0-3mdv2008.1 + Revision: 131568 - auto-convert XDG menu entry - kill re-definition of %%buildroot on Pixel's request - import glightoff * Wed Sep 28 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.0.0-3mdk - Fix BuildRequires * Tue Sep 13 2005 Michael Scherer <misc@mandriva.org> 1.0.0-2mdk - mkrel - requires librsvg to be able to load the svg file, fix #18528 * Thu Feb 03 2005 Abel Cheung <deaddog@mandrake.org> 1.0.0-1mdk - First Mandrake package