File jumpnbump.spec of Package jumpnbump
#
# spec file for package jumpnbump (Version 1.55)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: jumpnbump
BuildRequires: SDL_image-devel SDL_mixer-devel SDL_net-devel libdrm-devel update-desktop-files xorg-x11
License: GPL v2 or later
URL: http://www.jumpbump.mine.nu/
Group: Amusements/Games/Action/Other
Version: 1.55
Release: 102
Summary: Funny Game with Cute Little Bunnies
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.gz
Source1: jumpnbump.desktop
Source2: jumpnbump-levels-0.0.20020825_selected.tar.bz2
Patch0: jumpnbump-1.55-jnbmenudefaults.diff
%description
You are a cute little bunny and you have to avoid the other bunnies
trying to stomp on you and at the same time try to stomp on as many
opponents as possible. Jump & bump is multiplayer game only with up to
four players simultaneously. Gather the local crew and have a blast.
Authors:
--------
Florian Schulze <crow@icculus.org>
... many others, see AUTHORS file
%prep
rm -rf %{buildroot}
%setup -a 2 -n jumpnbump-1.50
%patch0 -p1
%build
./autogen.sh
%configure --bindir=%{_prefix}/games
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
install -m 755 modify/{gobpack,jnbpack,jnbunpack} %{buildroot}%{_prefix}/games
#
# get rid of superfluous scripts
/bin/rm -v %{buildroot}%{_prefix}/games/jumpnbump{-kdialog,-xdialog,.fbcon,.svgalib}
#
rm -rf levelmaking/CVS
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 sdl/*.xpm %{buildroot}%{_datadir}/pixmaps
#
cd jumpnbump-levels-*
for i in *.dat.bz2; do
bunzip2 < "$i" > %{buildroot}%{_datadir}/jumpnbump/"${i%%.bz2}"
done
cd ..
#
%if %suse_version > 820
%suse_update_desktop_file -i %name "Game ArcadeGame"
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc levelmaking
%doc AUTHORS COPYING ChangeLog README TODO
%doc XF86Config-4 *.txt jumpnbump.html
%{_prefix}/games/jumpnbump
%{_prefix}/games/jnbmenu.tcl
%{_prefix}/games/gobpack
%{_prefix}/games/jnbpack
%{_prefix}/games/jnbunpack
%dir %{_datadir}/jumpnbump
%{_datadir}/jumpnbump/*
%{_datadir}/pixmaps/*
%doc %{_mandir}/man6/*
%if %suse_version > 820
%{_datadir}/applications/*
%endif
%changelog
* Tue Aug 21 2007 - meissner@suse.de
- SDL_net -> SDL_net-devel
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Oct 02 2005 - stbinner@suse.de
- GenericName should be as the name tells generic
* Fri Jul 01 2005 - lnussel@suse.de
- new version 1.55 uses automake and proper optflags
* Fri Aug 06 2004 - lnussel@suse.de
- new version 1.50 adds support for AI bunnies
- add some additional levels from debian package as suggested by
Gürkan Sengün
- fix path to levels in launcher
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Mon Aug 18 2003 - lnussel@suse.de
- add desktop file
* Tue Apr 22 2003 - lnussel@suse.de
- initial package