File skindeep.spec of Package skindeep
#
# spec file for package skindeep
#
# Copyright (c) 2025, 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: skindeep
Version: 0~git20250626
Release: 0
Summary: An unofficial port of SkinDeep to Linux
License: GPL-3.0-only
Group: Amusements/Games/3D/Shoot
URL: https://github.com/DanielGibson/SkinDeep/
Source: SkinDeep-%{version}.tar.xz
BuildRequires: cmake
%if 0%{?sle_version} >= 150600 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
BuildRequires: gcc13
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: pkgconfig
BuildRequires: cmake(sdl2)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(openal)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
ExclusiveArch: %{ix86} x86_64
%description
An unofficial port of SkinDeep to Linux.
Note:
Game data must be placed in ~/.local/share/skindeep/ .
https://store.steampowered.com/app/301280/Skin_Deep/
If you want to use this with gamedata from the Demo you
have to use the binary %{_bindir}/skindeep_demo .
%prep
%autosetup -p1 -n SkinDeep-%{version}
cp -Rv neo neo-demo
%build
# Use a -std=gnu++20 compatible compiler on older systems
%if 0%{?sle_version} >= 150600 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
export CC="gcc-13"
export CXX="g++-13"
%endif
# Binary for the game data from the full game.
pushd neo
%cmake
%make_jobs
popd
# Binary for the game_assets from the demo.
pushd neo-demo
%cmake -DSDDEMO=ON
%make_jobs
popd
%install
install -Dm 0755 ./neo/build/skindeep %{buildroot}%{_bindir}/skindeep
install -Dm 0755 ./neo-demo/build/skindeep %{buildroot}%{_bindir}/skindeep_demo
%files
%doc readme_skindeep.txt README.txt
%{_bindir}/skindeep
%{_bindir}/skindeep_demo
%changelog