File extreme-tuxracer.spec of Package extreme-tuxracer
#
# spec file for package extreme-tuxracer (Version 0.4)
#
# Copyright (c) 2010 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
Summary: Open source racing game featuring Tux the Linux Penguin
Version: 0.4
Release: 97
Url: http://www.extremetuxracer.com
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
%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.
Authors:
--------
Volker Ströbel
Andreas Tarandi (Torandi)
StevenB
Hamish Morrison
%prep
%setup -n extremetuxracer-%{version}
%patch0 -p0
%patch1 -p1
%build
%configure --with-tcl=%{_libdir}
%__make %{?_smp_mflags}
%install
%makeinstall
(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
%clean
%__rm -rf %buildroot
%files
%defattr(-,root,root)
%{_bindir}/etracer
%{_bindir}/extreme-tuxracer
%dir %{_datadir}/etracer
%{_datadir}/etracer/*
%{_datadir}/pixmaps/etracer.svg
%{_datadir}/applications/etracer.desktop
%changelog