File reVC.spec of Package reVC
#
# spec file for package reVC
#
# Copyright (c) 2021, 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/
#
Name: reVC
Version: 0~git20210903.3233ffe1
Release: 0
Summary: A Grand Theft Auto Vice City game engine
#https://github.com/GTAmodding/re3#license
License: NonFree
Group: Amusements/Games/Action/Arcade
#Git-Clone: https://github.com/GTAmodding/re3.git
URL: https://github.com/GTAmodding/re3
Source: re3-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glfw3)
BuildRequires: pkgconfig(libmpg123)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(sndfile)
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
%description
An open-source Grand Theft Auto Vice City game engine.
NOTE:
To play GTA Vice City with reVC you need the original game files!
Copy the stuff from %{_datadir}/reVC/gamefiles/ into the original
game files directory an start the game from there.
%prep
%setup -q -n re3-%{version}
%build
mkdir -p build
./premake5Linux --with-librw gmake2
cd build
# parallel build is broken
%ifarch x86_64
make config=release_linux-amd64-librw_gl3_glfw-oal all
%endif
%ifarch i586
# parallel build is broken
make config=release_linux-x86-librw_gl3_glfw-oal all
%endif
%ifarch aarch64
# parallel build is broken
make config=release_linux-arm64-librw_gl3_glfw-oal all
%endif
%ifarch %{arm}
# parallel build is broken
make config=release_linux-arm-librw_gl3_glfw-oal all
%endif
%install
install -Dm0755 bin/linux-*/Release/reVC %{buildroot}%{_bindir}/reVC
install -d %{buildroot}%{_datadir}/reVC
cp -arv gamefiles/ %{buildroot}%{_datadir}/reVC/
%files
%doc README.md
%{_bindir}/reVC
%{_datadir}/reVC/
%changelog