Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > dfc9770fab3361e485d4eaccc457f784 > files > 1

ruby-game-2.1.0-5mdv2009.0.src.rpm

%define oname rubygame

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
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}

%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
* 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