File ppracer.spec of Package ppracer
#
# spec file for package ppracer (Version 0.3.1)
#
# Copyright (c) 2006 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: ppracer
BuildRequires: SDL_mixer-devel freetype2-devel gcc-c++ libpng-devel tcl-devel update-desktop-files xorg-x11-Mesa-devel
%if %suse_version > 1000
BuildRequires: libdrm-devel
%endif
Summary: 3D Penguin Downhill Racing Game
Version: 0.3.1
Release: 14
License: GPL
Group: Amusements/Games/3D/Race
URL: http://projects.planetpenguin.de/index.php
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Source2: %{name}.png
Source3: Doxyfile
Patch1: %{name}-%{version}-qualification.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: SDL >= 1.2.0, SDL_mixer >= 1.2.0, tcl >= 8.0, libpng
Obsoletes: tuxracer
Provides: tuxracer
%description
PlanetPenguin Racer is an OpenGL racing game featuring Tux, the Linux
mascot. The goal of the game is to slide down a snow- and ice-covered
mountain as quickly as possible. It is based on the GPL version of
TuxRacer.
Authors:
--------
Volker Stroebel <volker@planetpenguin.de>
%prep
%setup -q
%patch1
cp %{S:3} doc/
rm -rf doc/CVS contrib/CVS contrib/palettes/CVS contrib/script-fu/CVS
%build
%{?suse_update_config:%{suse_update_config -fl}}
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -DGLX_GLXEXT_PROTOTYPES" \
CXXFLAGS="$RPM_OPT_FLAGS -DGLX_GLXEXT_PROTOTYPES" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --with-tcl=%{_libdir}/
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 %{S:2} $RPM_BUILD_ROOT/usr/share/pixmaps
%suse_update_desktop_file -i %name Game X-SuSE-ActionGame
%files
%defattr(-,root,root)
/usr/bin/ppracer
/usr/share/ppracer
%doc AUTHORS COPYING ChangeLog README contrib
/usr/share/applications/%name.desktop
/usr/share/pixmaps/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog -n ppracer
* Mon Jun 19 2006 - schwab@suse.de
- Use autoreconf.
* Fri Jan 27 2006 - nadvornik@suse.cz
- fixed BuildRequires
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 05 2006 - lmichnovic@suse.cz
- new package, version 0.3.1