File extreme-tuxracer.spec of Package extreme-tuxracer
#
# spec file for package extreme-tuxracer
#
# Copyright (c) 2013 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: extreme-tuxracer
Version: 0.4
Release: 0
Summary: Open source racing game featuring Tux the Linux Penguin
License: GPL-2.0
Group: Amusements/Games/3D/Race
Url: http://www.extremetuxracer.com
Source: http://downloads.sourceforge.net/extremetuxracer/extremetuxracer-%{version}.tar.gz
# PATCH-FIX-UPSTREAM avp.patch
Patch0: avp.patch
# PATCH-FIX-UPSTREAM libpng14.patch
Patch1: libpng14.patch
BuildRequires: SDL-devel
BuildRequires: SDL_mixer-devel
%if 0%{?suse_version} > 1030
BuildRequires: fdupes
%endif
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: pkgconfig
%if 0%{?sles_version}
BuildRequires: Mesa-devel
BuildRequires: xorg-x11-libXmu-devel
BuildRequires: xorg-x11-libXt-devel
%else
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(xt)
%endif
BuildRequires: tcl-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Extreme Tux Racer is an open source racing game featuring Tux the Linux
Penguin. ETRacer continues in the tracks of Tux Racer and its forks.
%prep
%setup -q -n extremetuxracer-%{version}
%patch0 -p0
%patch1 -p1
%build
autoreconf -fi
%configure --with-tcl=%{_libdir}
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
(cd %{buildroot}/%{_bindir}; ln -s etracer extreme-tuxracer)
mkdir -p %{buildroot}%{_datadir} %{buildroot}%{_datadir}/pixmaps
install -m 644 etracericon.svg %{buildroot}/%{_datadir}/pixmaps/etracer.svg
%if 0%{?suse_version}
%suse_update_desktop_file -c etracer etracer "%{summary}" etracer etracer Game SportsGame
%endif
%if 0%{?suse_version} > 1030
%fdupes -s %{buildroot}%{_datadir}
%endif
%files
%defattr(-,root,root)
%{_bindir}/etracer
%{_bindir}/extreme-tuxracer
%{_datadir}/etracer/
%{_datadir}/pixmaps/etracer.svg
%{_datadir}/applications/etracer.desktop
%changelog