1
0
ultimatestunts/ultimatestunts.spec
2012-11-30 22:29:38 +00:00

123 lines
3.6 KiB
RPMSpec

#
# spec file for package ultimatestunts
#
# 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: ultimatestunts
Version: 0.7.7.1
Release: 0
Summary: A racing game in the style of "Stunts"
License: GPL-2.0+
Group: Amusements/Games/3D/Race
Url: http://ultimatestunts.nl/
#Freecode-URL: http://freecode.com/projects/ultimatestunts
#DL-URL: http://downloads.sf.net/ultimatestunts/ultimatestunts-srcdata-0771.tar.gz
Source: %name-srcdata-0771.tar.xz
Patch1: 01-fix-missing-includes.diff
Patch2: 02-fix-type-puns.diff
Patch3: 03-fix-format-mismatches.diff
Patch4: 04-fix-parallel-build-issue.diff
Patch5: 05-fix-destdir.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: xz
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(freealut)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sdl) >= 1.1.0
BuildRequires: pkgconfig(vorbisfile) >= 1.0.0
%else
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: freealut-devel
BuildRequires: Mesa-devel
BuildRequires: openal-devel
%endif
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
Requires: %name-data
%description
Ultimate Stunts is a remake of the famous DOS-game stunts. Racing in
Ultimate Stunts involves some really spectacular stunts, like
loopings, corkscrews, bridges to jump over, etc. You can also design
your own tracks.
%package data
Summary: Graphics, music, cars and tracks for Ultimate Stunts
Group: Amusements/Games/3D/Race
%if 0%{?suse_version} >= 1210 || 0%{?fedora_version}
BuildArch: noarch
%endif
%description data
This package contains the game data for Ultimate Stunts.
Ultimate Stunts is a remake of the famous DOS-game stunts. Racing in
Ultimate Stunts involves some really spectacular stunts, like
loopings, corkscrews, bridges to jump over, etc. You can also design
your own tracks.
%package lang
Summary: Translations for Ultimate Stunts
Group: Amusements/Games/3D/Race
%if 0%{?suse_version} >= 1210 || 0%{?fedora_version}
BuildArch: noarch
%endif
%description lang
This package contains the translations for Ultimate Stunts.
Ultimate Stunts is a remake of the famous DOS-game stunts. Racing in
Ultimate Stunts involves some really spectacular stunts, like
loopings, corkscrews, bridges to jump over, etc. You can also design
your own tracks.
%prep
%setup -qn %name-srcdata-0771
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
%build
find . -type d -name .svn -exec rm -Rf "{}" "+";
%configure
make %{?_smp_mflags} -j1;
%install
b="%buildroot";
make install DESTDIR="$b" usdatadir="$b/%_datadir/ultimatestunts";
%if 0%{?fdupes:1}
%fdupes %buildroot/%_prefix
%endif
%find_lang %name
%files
%defattr(-,root,root)
%config %_sysconfdir/ultimatestunts.conf
%_bindir/ustunts*
%files data
%defattr(-,root,root)
%_datadir/%name
%_datadir/%name/lang
%changelog