%define oname rubygame %define subrel 1 Summary: Cross-platform multimedia library for ruby Name: ruby-game Version: 2.1.0 Release: %mkrel 5 License: LGPLv2+ Group: Development/Ruby Url: http://rubygame.sourceforge.net/ Source0: http://downloads.sourceforge.net/rubygame/%{oname}-%{version}.tar.bz2 Patch0: rubygame-2.1.0-linkage.patch BuildRequires: ruby-rake BuildRequires: ruby-devel BuildRequires: ruby-RubyGems BuildRequires: SDL-devel BuildRequires: SDL_gfx-devel BuildRequires: SDL_image-devel BuildRequires: SDL_mixer-devel BuildRequires: SDL_ttf-devel Requires: ruby BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description Rubygame is a cross-platform game-development extension and library for Ruby, inspired by Pygame.The purpose of Rubygame is to empower game developers by providing them with powerful and flexible high-level concepts. Instead of worrying about low-level technical details, you can focus your energy on more interesting things (like making a fun game). Rubygames core is written in C to bind low-level SDL functions in ruby. On top of that is a pure ruby library for higher-level behavior like event and game object management. %prep %setup -qn %{oname}-%{version} %patch0 -p0 %build rake build rake rdoc %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} mkdir -p %{buildroot}{%{ruby_sitearchdir},%{ruby_sitelibdir}} RUBYGAME_CONFIG="--sitearchdir %{buildroot}%{ruby_sitearchdir} --sitelibdir %{buildroot}%{ruby_sitelibdir}" rake install %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(644,root,root,755) %doc html/* %attr(755,root,root) %{ruby_sitearchdir}/%{oname}*.so %{ruby_sitelibdir}/* %changelog * Sun Feb 01 2009 Funda Wang <fundawang@mandriva.org> 2.1.0-5.1mdv2009.0 + Revision: 336115 - fix linkage (bug#47417) * Sat Aug 02 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.1.0-5mdv2009.0 + Revision: 260407 - rebuild * Mon Jul 28 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.1.0-4mdv2009.0 + Revision: 251668 - rebuild * Mon Feb 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.1.0-2mdv2008.1 + Revision: 171084 - rebuild - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Tue Nov 20 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.1.0-1mdv2008.1 + Revision: 110662 - new version - new license policy * Tue May 01 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.0.0-1mdv2008.0 + Revision: 19997 - make it work - correct buildrequires - Import ruby-game