File systemshock.spec of Package systemshock
#
# spec file for package systemshock
#
# Copyright (c) 2018, 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 http://bugs.opensuse.org/
#
Name: systemshock
Version: 0.8.2
Release: 0
Summary: Free game engine for System Shock 1
License: GPL-3.0-only
Group: Amusements/Games/Strategy/Other
URL: https://github.com/Interrupt/systemshock
#Git-Clone: https://github.com/Interrupt/systemshock
Source: https://github.com/Interrupt/systemshock/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(sdl2)
%description
A cross platform source port of the System Shock source code.
NOTE: Original System Shock game files are needed.
%prep
%setup -q
%build
#Build with %%cmake macros is broken
mkdir build
cd build
cmake .. \
-DENABLE_SDL2=ON \
-DENABLE_SOUND=ON \
-DENABLE_FLUIDSYNTH=ON \
-DENABLE_OPENGL=ON
make %{?_smp_mflags}
%install
install -Dm 0755 build/%{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%changelog