1
0

- Modernize specfile. Switch to original source tarball.

- Run fdupes.

OBS-URL: https://build.opensuse.org/package/show/games/ultimatestunts?expand=0&rev=5
This commit is contained in:
Jan Engelhardt 2019-08-23 17:47:24 +00:00 committed by Git OBS Bridge
parent 86041ed529
commit cbb28dba58
4 changed files with 23 additions and 40 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fcc06e4a2ff2c5c1bd937670acdb079140f3ce0efdf00578eb6559a20ebb26d3
size 47449346

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c71a60c66834645d2d9ef3ec86c1a1bcf97b306320c0cb24dd08fcb1eb13dab0
size 21801760

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 23 16:37:06 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Modernize specfile. Switch to original source tarball.
- Run fdupes.
-------------------------------------------------------------------
Fri Nov 30 17:04:52 UTC 2012 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ultimatestunts
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -20,44 +20,31 @@ Name: ultimatestunts
Version: 0.7.7.1
Release: 0
Summary: A racing game in the style of "Stunts"
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Amusements/Games/3D/Race
Url: http://ultimatestunts.nl/
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
Source: http://downloads.sf.net/ultimatestunts/ultimatestunts-srcdata-0771.tar.gz
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: fdupes
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: Mesa-devel
BuildRequires: SDL-devel
BuildRequires: SDL_image-devel
BuildRequires: freealut-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 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.
@ -65,14 +52,12 @@ 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 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.
@ -80,42 +65,34 @@ 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 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
%autosetup -p1 -n %name-srcdata-0771
%build
find . -type d -name .svn -exec rm -Rf "{}" "+";
find . -type d -name .svn -exec rm -Rf "{}" "+"
%configure
make %{?_smp_mflags} -j1;
make %{?_smp_mflags} -j1
%install
b="%buildroot";
make install DESTDIR="$b" usdatadir="$b/%_datadir/ultimatestunts";
%if 0%{?fdupes:1}
%make_install usdatadir="%buildroot/%_datadir/ultimatestunts"
%fdupes %buildroot/%_prefix
%endif
%files
%defattr(-,root,root)
%config %_sysconfdir/ultimatestunts.conf
%_bindir/ustunts*
%doc COPYING
%license COPYING
%files data
%defattr(-,root,root)
%_datadir/%name
%_datadir/%name/lang