File gnujump.spec of Package gnujump

Name:		gnujump
Version:	1.0.6
Release:	1.0
Summary:	A jumping game which is a clone of xjump
Group:		Amusements/Games/Action/Arcade
License:	GPLv3+
URL:		http://gnu.org/software/%{name}
Source0:	http://ftp.gnu.org/gnu/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Patch1:		%{name}-Makefile.in.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

BuildRequires:	SDL-devel, SDL_mixer-devel, SDL_image-devel
BuildRequires:	desktop-file-utils

Requires:	SDL_mixer, SDL_image

%description
GNUjump is a clone of the simple yet addictive game Xjump, adding new features
like multiplaying, unlimited FPS, smooth floor falling, themable graphics,
sounds,replays, etc.

The goal in this game is to jump to the next floor trying not to fall down. As
you go upper in the Falling Tower the floors will fall faster. Try to survive 
longer get upper than anyone. It might seem too simple but once you've tried 
you'll realize how addictive this is. 

%prep
%setup -q
%patch1 -p0 -b .orig

%build
%configure
make %{?_smp_mflags}

%check
make check

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}

%clean
rm -rf $RPM_BUILD_ROOT


%files 
%defattr(-,root,root,-)
%doc AUTHORS ABOUT-NLS COPYING README 
%{_bindir}/%{name}
%dir %{_datadir}/%{name} 
%{_datadir}/%{name}/*
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/%{name}.desktop


%changelog
* Fri May 20 2011 kobayashi
- Rebuilt for openSUSE

* Fri Oct 8 2010 Vivek Shah <boni.vivek at gmail.com> - 1.0.6-4
- Fixed ImplicitDSO bug #564630

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sun Jul 12 2009 Vivek Shah <bonii at fedoraproject.org> 1.0.6-2
- Removed vendor tag from desktop-file-install
- Added ownership for unowned directories
- Fixed license to GPLv3+

* Sat Jul 4 2009 Vivek Shah <bonii at fedoraproject.org> 1.0.6-1
- Updated to new upstream version
- Updated URL for consistency with name macro
- Added subcategory in menu entry in desktop file

* Sat Aug 30 2008 Vivek Shah <boni.vivek at gmail.com> 1.0.5-1
- Added desktop file and entry
- Initial Package