File extreme-tuxracer.spec of Package extreme-tuxracer

# spec file for package extreme-tuxracer
# Copyright (c) 2011 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

Name:           extreme-tuxracer
Summary:        Open source racing game featuring Tux the Linux Penguin
Version:        0.4
Release:        97
Source:         %{name}-%{version}.tar.gz
Patch0:         avp.patch
Patch1:         libpng14.patch
License:        GPLv2
Group:          Amusements/Games/3D/Race
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  Mesa-devel SDL-devel SDL_mixer-devel fdupes gcc-c++ libpng-devel tcl-devel update-desktop-files

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.

%setup -n extremetuxracer-%{version}
%patch0 -p0
%patch1 -p1

%configure --with-tcl=%{_libdir}
%__make %{?_smp_mflags}

(cd %buildroot/%{_bindir}; ln -s etracer extreme-tuxracer)
%__install -D etracericon.svg %buildroot/%{_datadir}/pixmaps/etracer.svg
%suse_update_desktop_file -c etracer etracer "%{summary}" etracer etracer Game SportsGame
%fdupes -s %buildroot

%dir %{_datadir}/etracer