File dethrace.spec of Package dethrace
#
# spec file for package dethrace
#
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2022-2026, 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: dethrace
Version: 0.10.0
Release: 0
Summary: Source port of the vehicular combat video game Carmageddon
### dethrace is GPL-3.0+, but uses glad (MIT license) and miniaudio (MIT), stb (MIT) and BRender (MIT), libsmacker (LGPL 2.1)
License: GPL-3.0-or-later
Group: Amusements/Games/3D/Other
URL: https://twitter.com/dethrace_labs
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(sdl2)
#https://github.com/Dav1dde/glad
Provides: bundled(glad)
#https://miniaud.io/
Provides: bundled(miniaudio)
#https://github.com/foone/BRender-v1.3.2
Provides: bundled(BRender)
#https://github.com/nothings/stb/
Provides: bundled(stb)
#https://libsmacker.sourceforge.net/
Provides: bundled(libsmacker)
%description
A source port of the vehicular combat video game Carmageddon.
NOTE: To play Carmageddon with dethrace you need the original game files!
https://github.com/dethrace-labs/dethrace#game-content
%prep
%setup -q
%build
echo %{version} > VERSION
mkdir build && cd build
cmake ..
# for some reason it segfaults with the distro CFLAGS
#%%cmake
%cmake_build
%install
install -Dm0755 build/dethrace %{buildroot}%{_bindir}/dethrace
%files
%license LICENSE
%doc NOTES.md README.md
%{_bindir}/dethrace
%changelog