Package supertux2: Specfile

Name: supertux2
Version: 0.3.1d
Release: alt3

Summary: SuperMario like game
License: GPL
Group: Games/Arcade
URL: http://supertux.berlios.de/

Source0: supertux-%version.tar.bz2

Source11: supertux-16x16.png
Source12: supertux-32x32.png
Source13: supertux-48x48.png

Patch0: supertux-0.3.1-alt-desktop-file.patch
Patch1: supertux-0.3.0-alt-optflags.patch
Patch2: supertux-0.3.1-gcc43.patch

Conflicts: supertux
Packager: Ilya Mashkin <oddity@altlinux.ru>

Requires: %name-data = %version

# Automatically added by buildreq on Tue Dec 02 2008 (-bi)
BuildRequires: flex gcc-c++ imake jam libGL-devel libSDL-devel libSDL_image-devel libX11-devel libopenal-devel libvorbis-devel physfs-devel xorg-cf-files

%description
SuperTux is a jump'n run like game, with strong inspiration from the
Super Mario Bros games for Nintendo.

Run and jump through multiple worlds, fighting off enemies by jumping
on them or bumping them from below.  Grabbing power-ups and other stuff
on the way.

%package data
Summary: Data files for supertux2
Group: Games/Arcade
Requires: %name = %version
Conflicts: %name < 0.3.1d-alt2
BuildArch: noarch

%description data
SuperTux is a jump'n run like game, with strong inspiration from the
Super Mario Bros games for Nintendo.

Run and jump through multiple worlds, fighting off enemies by jumping
on them or bumping them from below.  Grabbing power-ups and other stuff
on the way.

This is package contains data files for supertux2.

%prep
%setup -q -n supertux-0.3.1
%patch0 -p1
%patch1 -p0
%patch2 -p1

%build
%configure --disable-debug
export CFLAGS="%optflags"
export CXXFLAGS="%optflags"
jam -dx

%install
export DESTDIR=%buildroot
mkdir -p %buildroot
jam install

install -m644 %SOURCE11 -D %buildroot%_miconsdir/supertux.png
install -m644 %SOURCE12 -D %buildroot%_iconsdir/supertux.png
install -m644 %SOURCE13 -D %buildroot%_liconsdir/supertux.png

%files
%_bindir/supertux2
%_datadir/applications/supertux2.desktop
%dir %_docdir/supertux2-0.3.1/
%doc %_docdir/supertux2-0.3.1/*
%_miconsdir/*.png
%_iconsdir/*.png
%_liconsdir/*.png
%_datadir/pixmaps/supertux.png
%_datadir/pixmaps/supertux.xpm

%files data
%dir %_datadir/supertux2
%_datadir/supertux2/

%changelog
* Wed Dec 03 2008 Igor Zubkov <icesik@altlinux.org> 0.3.1d-alt3
- fix requires

* Tue Dec 02 2008 Igor Zubkov <icesik@altlinux.org> 0.3.1d-alt2
- apply patch from repocop
- fix desktop file
- move data files to noarch subpackage
- buildreq

* Tue Oct 06 2008 Ilya Mashkin <oddity@altlinux.ru> 0.3.1d-alt1.1
- rebuild

* Mon Mar 10 2008 Igor Zubkov <icesik@altlinux.org> 0.3.1d-alt1
- 0.3.0 -> 0.3.1d

* Sat Feb 17 2007 Igor Zubkov <icesik@altlinux.org> 0.3.0-alt1
- 0.1.3 -> 0.3.0 (closes #10563)
- warning: this is Tech Demo release
- buildreq
- rename supertux to supertux2
- add Conflict to supertux

* Fri May 19 2006 Eugene V. Horohorin <genix@altlinux.ru> 0.1.3-alt2
- gcc4.1 compatible
- menu-file removed (using desktop-file instead)

* Sun Jul 24 2005 Eugene V. Horohorin <genix@altlinux.ru> 0.1.3-alt1
- 0.1.3

* Tue Oct 26 2004 Eugene V. Horohorin <genix@altlinux.ru> 0.1.2-alt2
- menu file group fix

* Thu Aug 26 2004 Eugene V. Horohorin <genix@altlinux.ru> 0.1.2-alt1
- new version

* Tue Jul 06 2004 Anton Farygin <rider@altlinux.ru> 0.1.1-alt1
- new version
- menu permissions fixed (#4169)

* Sun May 16 2004 Albert R. Valiev <darkstar@altlinux.ru> 0.1.0-alt2
- Fixed menu file

* Wed May 05 2004 Albert R. Valiev <darkstar@altlinux.ru> 0.1.0-alt1
- Initial release