%define name supertux %define vname %{name}2 %define version 0.3.3 %define release %mkrel 35 %define Summary Classic 2D jump'n run sidescroller with Tux Name: %{name} Version: %{version} Release: %{release} Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Patch0: supertux-0.3.3-curl.patch Patch1: supertux-0.3.3-squirrel-lib.patch License: GPLv3 Group: Games/Arcade URL: http://code.google.com/p/supertux/ Summary: %{Summary} BuildRequires: cmake BuildRequires: libcurl-devel BuildRequires: SDL_mixer-devel SDL_image-devel mesaglu-devel libglew-devel BuildRequires: oggvorbis-devel openal-devel physfs-devel zlib-devel boost-devel %description SuperTux is a classic 2D jump'n run sidescroller game in a similar style like the original SuperMario games. %prep %setup -q %patch0 -p0 %patch1 -p0 %build %cmake %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std -C build # mv %{buildroot}%{_gamesdatadir}/applications %{buildroot}%{_datadir}/ # mv %{buildroot}%{_gamesdatadir}/pixmaps %{buildroot}%{_datadir}/ rm -fr %{buildroot}%{_gamesdatadir}/doc/%{vname}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc COPYING INSTALL README WHATSNEW.txt %{_gamesdatadir}/%{vname} %{_datadir}/pixmaps/%{name}.xpm %{_datadir}/applications/%{vname}.desktop %{_datadir}/pixmaps/supertux.png %defattr(755,root,root,755) %{_gamesbindir}/%{vname} %{_docdir}/supertux2/COPYING %{_docdir}/supertux2/INSTALL %{_docdir}/supertux2/README %{_docdir}/supertux2/WHATSNEW.txt %changelog * Mon Oct 03 2011 fwang <fwang> 0.3.3-35.mga2 + Revision: 151227 - bump rel - build static squirrel lib * Mon Oct 03 2011 fwang <fwang> 0.3.3-34.mga2 + Revision: 151215 - fix build with latest curl - use bundled squiirel - clean icons - rebuild for new glew * Thu Apr 07 2011 dams <dams> 0.3.3-3.mga1 + Revision: 81674 + rebuild (emptylog) * Mon Apr 04 2011 dams <dams> 0.3.3-2.mga1 + Revision: 80447 - update spec file (url, licence) and update icon to official icon * Fri Apr 01 2011 dams <dams> 0.3.3-1.mga1 + Revision: 79371 - Import + supp <supp> - imported package supertux