%define name pingus %define version 0.7.2 %define rel 8 %define Summary Pingus - A free Lemmings clone Summary: %{Summary} Name: %{name} Version: %{version} Release: %mkrel %{rel} License: GPLv2+ Group: Games/Arcade URL: http://pingus.seul.org Source0: http://dark.x.dtu.dk/~grumbel/pingus/%{name}-%{version}.tar.bz2 Source11: %{name}.16.png Source12: %{name}.32.png Source13: %{name}.48.png Patch1: pingus-0.7.1-dataloc.patch Patch3: pingus-0.7.2-gcc44.patch BuildRequires: scons BuildRequires: boost-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_image-devel BuildRequires: libpng-devel BuildRequires: physfs-devel BuildRequires: cwiid-devel # To avoid automatic Requires on file BuildRequires: guile BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Pingus is a free Lemmings clone covered under the GPL. Pingus uses SDL, which should make it portable over a lot of operating systems in the future. At the moment the main target is Linux. It is possible to play Pingus in a X window or in fullscreen. %prep %setup -q %patch1 -p1 -b .dataloc %patch3 -p1 sed -i 's/BINDIR="\$1\/bin\/"/BINDIR="\$1\/games"/' install.sh sed -i 's/DATADIR="\$1\/share\/pingus\/"/DATADIR="\$1\/share\/games\/pingus\/"/' install.sh %build %configure_scons \ prefix=%{_prefix} \ execprefix=%{_gamesbindir} \ datadir=%{_gamesdatadir} \ libdir=%{_libdir} \ with_wiimote=True %scons %install rm -rf %{buildroot} ./install.sh %{buildroot}/usr install -m 755 -d %{buildroot}%{_datadir}/applications/ cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=Pingus Comment=%{Summary} Exec=%{_gamesbindir}/%{name} Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=Game;ArcadeGame; EOF install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png %find_lang %{name} rm -f %{buildroot}%{_datadir}/locale/locale.alias %post %if %mdkversion < 200900 %{update_menus} %endif %_install_info %{name}.info %if %mdkversion < 200900 %update_icon_cache hicolor %endif %preun %_remove_install_info %{name}.info %if %mdkversion < 200900 %postun %{clean_menus} %clean_icon_cache hicolor %endif %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING README* TODO %{_gamesbindir}/pingus %{_gamesdatadir}/%{name} %{_datadir}/applications/mandriva-%{name}.desktop %{_iconsdir}/hicolor/*/apps/%{name}.png %changelog * Tue Jun 29 2010 Pascal Terjan <pterjan@mandriva.org> 0.7.2-8mdv2010.1 + Revision: 549480 - Add BuildRequires guile (#53526) * Mon Feb 08 2010 Anssi Hannula <anssi@mandriva.org> 0.7.2-7mdv2010.1 + Revision: 501882 - rebuild for new boost * Wed Feb 03 2010 Funda Wang <fwang@mandriva.org> 0.7.2-6mdv2010.1 + Revision: 500309 - rebuild for new boost * Tue Jan 05 2010 Thierry Vignaud <tv@mandriva.org> 0.7.2-5mdv2010.1 + Revision: 486394 - rebuild with latest spec-helper which add package require instead of file require due to scripts using guile (#55407) * Fri Aug 21 2009 Funda Wang <fwang@mandriva.org> 0.7.2-4mdv2010.0 + Revision: 418846 - sync with fedora gcc44 patch * Mon Mar 09 2009 Emmanuel Andry <eandry@mandriva.org> 0.7.2-3mdv2009.1 + Revision: 353225 - add wiimote support * Sun Dec 21 2008 Funda Wang <fwang@mandriva.org> 0.7.2-2mdv2009.1 + Revision: 316922 - rebuild for new boost * Tue Sep 02 2008 Emmanuel Andry <eandry@mandriva.org> 0.7.2-1mdv2009.0 + Revision: 279350 - add gcc43 patch + 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 + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sun Nov 04 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 0.7.2-1mdv2008.1 + Revision: 105757 - spec file clean - move icons to the fd.o icons directory - add scriplets - compile with support for wiimote - drop patch 2 - compile with optflags - drop X-MandrivaLinux away from desktop file - new version - new license policy * Fri Oct 26 2007 Crispin Boylan <crisb@mandriva.org> 0.7.1-2mdv2008.1 + Revision: 102297 - Update description, update and reenable patch1 * Thu Oct 25 2007 Crispin Boylan <crisb@mandriva.org> 0.7.1-1mdv2008.1 + Revision: 102209 - Add patch2 for new boost lib name - New version + Thierry Vignaud <tv@mandriva.org> - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' * Tue Aug 28 2007 Crispin Boylan <crisb@mandriva.org> 0.7.0-1mdv2008.0 + Revision: 72333 - New version, does not depend on clanlib anymore * Sat Jan 06 2007 Götz Waschk <waschk@mandriva.org> 0.6.0-9mdv2007.0mdv2007.0 + Revision: 104768 - Import pingus * Sat Jan 06 2007 Götz Waschk <waschk@mandriva.org> 0.6.0-9mdv2007.1mdv2007.1 - unpack patches - xdg menu * Mon Jan 16 2006 Olivier Blin <oblin@mandriva.com> 0.6.0-9mdk - buildrequires correct clanlib version * Wed Dec 21 2005 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 0.6.0-8mdk - from Colin Guthrie <mdk@colin.guthr.ie> : o fix build with gcc4 (P2) o remove locale.alias which breaks build * Wed Sep 01 2004 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 0.6.0-7mdk - rebuild for new menu - fix buildrequires (lib64..) * Tue Jun 29 2004 Michael Scherer <misc@mandrake.org> 0.6.0-6mdk - rebuild for new gcc and new clanlib, with the help of Laurent Montel <lmontel@mandrakesoft.com> - remove Packager tag