%define sourcever %(echo %version|sed "s|[a-z]||") Name: supertux Version: 0.3.1d Release: 1mamba Summary: A classic 2D jump'n run sidescroller game Group: Graphical Desktop/Applications/Games Distribution: openmamba Vendor: openmamba Packager: Tiziana Ferro URL: http://super-tux.sourceforge.net/ Source: http://download.berlios.de/supertux/%{name}-%{version}.tar.bz2 Patch0: %{name}-0.3.1-gcc43.patch License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libGL-devel BuildRequires: libogg-devel BuildRequires: libopenal-devel BuildRequires: libphysfs-devel BuildRequires: libSDL-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel BuildRequires: libstdc++6-devel BuildRequires: libvorbis-devel ## AUTOBUILDREQ-END BuildRequires: ftjam Requires: libSDL Requires: libSDL_image Requires: libSDL_mixer %description SuperTux is a jumping run like game, with strong inspiration from the Super Mario Bros games for Nintendo. Run and jump through multiple worlds, fighting off enemies by jumping on them or bumping them from below. Grabbing power-ups and other stuff on the way. %prep %setup -q -n %{name}-%{sourcever} %patch0 -p1 %build # Fix the level names to work around an installer bug cd data/levels/world1/ sed -i -e "s/ - .*\.stl/.stl/" worldmap.stwm for f in *" "-" "*.stl; do mv "$f" "${f/ - *.stl/.stl}"; done cd ../../.. %configure jam %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" jam install DESTDIR=%{buildroot} %files %defattr(-,root,root) %{_bindir}/* %{_datadir}/%{name}2 %{_datadir}/applications/%{name}2.desktop %{_datadir}/pixmaps/%{name}.* %exclude %{_datadir}/doc/%{name}2-%{sourcever} %doc COPYING INSTALL README WHATSNEW.txt %clean test "%{buildroot}" != "" && rm -rf "%{buildroot}" %changelog * Tue Apr 21 2009 Automatic Build System 0.3.1d-1mamba - automatic update by autodist * Mon May 05 2008 Tiziana Ferro 0.3.0-2mamba - add autobuildreq, indent requirements * Mon May 05 2008 Tiziana Ferro 0.3.0-1mamba - update to 0.3.0 * Tue Apr 05 2005 Alessandro Ramazzina 0.1.2-2qilnx - rebuild and moved from devel-contrib repository to devel repository * Sat Sep 25 2004 Matteo Bernasconi 0.1.2-1 - first build