File extreme-tuxracer.spec of Package extreme-tuxracer
#
# spec file for package extreme-tuxracer
#
# Copyright (c) 2016 SUSE LINUX 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/
#
%define oname etr
Name: extreme-tuxracer
Version: 0.7.3
Release: 0
Summary: Open source racing game featuring Tux the Linux Penguin
License: GPL-2.0+
Group: Amusements/Games/3D/Race
%global pkgsummary %summary
Url: http://sourceforge.net/projects/extremetuxracer/
Source0: http://downloads.sourceforge.net/extremetuxracer/%{oname}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: sfml2-devel
BuildRequires: pkgconfig(freetype2)
%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
%if 0%{?suse_version}
BuildRequires: fdupes
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. Extreme Tux Racer continues in the tracks
of Tux Racer and its forks.
%prep
%setup -q -n %{oname}-%{version}
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
%install
%make_install
%if 0%{?suse_version}
%suse_update_desktop_file %{oname}
%fdupes -s %{buildroot}%{_prefix}
%endif
# Remove not needed files
rm -fr %{buildroot}%{_datadir}/doc
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS doc/code doc/courses_events doc/guide doc/score_algorithm
%{_bindir}/%{oname}
%{_datadir}/%{oname}/
%{_datadir}/pixmaps/%{oname}.png
%{_datadir}/pixmaps/%{oname}.svg
%{_datadir}/applications/%{oname}.desktop
%changelog