File dreerally.spec of Package dreerally
#
# spec file for package dreerally
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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 https://bugs.opensuse.org/
#
# The 32bit package (dreerally-32bit) can be obtained using the following command:
# osc build --baselibs --disable-debuginfo openSUSE_Tumbleweed i586 dreerally.spec
Name: dreerally
Version: 0.3+git.20201003.1227493
Release: 0
Summary: Death Rally engine reimplementation
License: CC-BY-SA-4.0
Group: Amusements/Games/Action/Arcade
URL: http://dreerally.com/
#Git-Clone: https://github.com/enriquesomolinos/DreeRally.git
Source: %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE dreerally-dont-link-against-sdl_main.patch -- Don't link against SDLmain
Patch0: dreerally-dont-link-against-sdl_main.patch
Patch1: dreerally-fix-gcc10.patch
BuildRequires: fmod-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(glut)
ExclusiveArch: %{ix86}
%description
DreeRally is an open source port of game engine used in the game
Death Rally from Remedy Entertainment.
This package only includes the binary files. You still need the
data files from the "Death Rally" original CD-ROM
See: /usr/share/doc/packages/dreerally/README.md for details.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%make_build -f Makefile.linux
%install
install -D -m0755 dreerally %{buildroot}/%{_bindir}/%{name}
%post
echo "Please create a directory with the data files from the Death Rally original CD-ROM."
echo "See /usr/share/doc/packages/dreerally/README.md for the needed data files directory structure."
echo "You then have to run the dreerally from this directory."
%files
%license LICENSE-CC-BY-4.0.md
%doc README.md
%{_bindir}/%{name}
%changelog