File ppracer.spec of Package ppracer
#
# spec file for package ppracer
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ppracer
Version: 0.3.1
Release: 0
Summary: 3D Penguin Downhill Racing Game
License: GPL-2.0+
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
# PATCH-FIX-UPSTREAM ppracer-0.3.1-qualification.patch
Patch1: %{name}-%{version}-qualification.patch
# PATCH-FIX-UPSTREAM ppracer-0.3.1-png14.patch
Patch2: ppracer-0.3.1-png14.patch
%if 0%{?sles_version}
BuildRequires: xorg-x11-libXmu-devel
BuildRequires: xorg-x11-libXt-devel
%else
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(xt)
%endif
BuildRequires: SDL_mixer-devel
BuildRequires: automake
%if 0%{?suse_version} > 1030
BuildRequires: fdupes
%endif
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: libdrm-devel
BuildRequires: libpng-devel
BuildRequires: tcl-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRequires: xorg-x11-Mesa-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -q
%patch1
%patch2
cp %{SOURCE3} doc/
rm -rf doc/CVS contrib/CVS contrib/palettes/CVS contrib/script-fu/CVS
%build
autoreconf -fi
CFLAGS="%{optflags} -DGLX_GLXEXT_PROTOTYPES" \
CXXFLAGS="%{optflags} -DGLX_GLXEXT_PROTOTYPES" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --with-tcl=%{_libdir}/
make
%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_datadir} %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
%if 0%{?suse_version}
%suse_update_desktop_file -i %{name} Game X-SuSE-ActionGame
%endif
%if 0%{?suse_version} > 1030
%fdupes -s %{buildroot}%{_datadir}
%endif
%files
%defattr(-,root,root)
%{_bindir}/ppracer
%{_datadir}/ppracer
%doc AUTHORS COPYING ChangeLog README contrib
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%changelog