File wrath-darkplaces.spec of Package wrath-darkplaces
#
# spec file for package wrath-darkplaces
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2020 Imo Hester (VortexAcherontic) vortex@z-ray.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: wrath-darkplaces
Version: 1
Release: 0
Summary: Darkplaces Engine port for WRATH: Aeon of Ruin
License: GPL-2.0-or-later
URL: https://github.com/Official3DRealms/wrath-darkplaces
Group: Amusements/Games/3D/Shoot
Source0: _service
Patch0: build_fix.patch
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: libX11-devel
BuildRequires: libcurl-devel
BuildRequires: libd0_blind_id0
BuildRequires: libjpeg62-devel
BuildRequires: libogg-devel
BuildRequires: libpng16-devel
BuildRequires: libvorbis-devel
BuildRequires: pkgconfig(sdl2)
%description
Modification of the darkplaces engine for the commercial
game WRATH: Aeon of Ruin.
This package only contains the core engine files but not any data
files required to play the game. In order to play the game you
must own a copy of WRATH: Aeon of Ruin and launch it as:
wrath-darkplaces-sdl -basedir /path/to/your/wrath/installation
Also let it be known that due to some changes it might be that other
games such as Quake and any of it's mission packs might not run
with this version of the engine.
%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%patch -P 0 -p 1
%build
%make_build sdl2-release
%install
install -D -m 755 wrath-sdl %{buildroot}%{_bindir}/wrath-sdl
# There is no make install target hence moving these files to the right
# location is done manually
install -D -m 644 COPYING %{buildroot}%{_licensedir}/%name/COPYING
install -D -m 644 darkplaces.txt %{buildroot}%{_docdir}/%name/darkplaces.txt
%files
%license COPYING
%doc darkplaces.txt
%{_bindir}/wrath-sdl
%changelog