File rbdoom3bfg.spec of Package rbdoom3bfg

#
# spec file for package rbdoom3bfg
#
# Copyright (c) 2025 SUSE LLC
#
# 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:           rbdoom3bfg
Version:        1.6.0
Release:        0
Summary:        An open source DOOM 3 BFG Edition Engine
License:        GPL-3.0-only
Group:          Amusements/Games/Action/Shoot
URL:            https://github.com/RobertBeckebans/RBDOOM-3-BFG
Source0:        %{name}-%{version}.tar.xz
Source1:        rbdoom3bfg.sh
BuildRequires:  DirectXShaderCompiler-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  ispc
BuildRequires:  libvkd3d-utils1
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(RapidJSON)
BuildRequires:  pkgconfig(libavcodec)
BuildRequires:  pkgconfig(libavformat)
BuildRequires:  pkgconfig(libavutil)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libswresample)
BuildRequires:  pkgconfig(libswscale)
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(vulkan)
BuildRequires:  pkgconfig(zlib)
Requires:       zenity
Provides:       bundled(libjpeg)

%description
DOOM: BFA (Big Freaking Anniversary) Edition (former Classic RBDoom 3 BFG)
is a source port based on RBDOOM-3-BFG and enchance the experience of
Ultimate DOOM, DOOM 2 and DOOM 3.

Note, to play the original game, you'll need a copy of the game data.
The package can also be used with free map data, like the demomap from
OpenTechBFG.

%prep
%autosetup

%build
cd neo/
%cmake \
  -DBUILD_SHARED_LIBS=OFF \
  -DSDL2=ON \
  -DOPENAL=ON \
  -DOpenGL_GL_PREFERENCE=GLVND \
  -DONATIVE=OFF \
  -DUSE_SYSTEM_ZLIB=ON \
  -DUSE_SYSTEM_LIBPNG=ON \
  -DUSE_SYSTEM_LIBJPEG=OFF \
  -DUSE_SYSTEM_LIBGLEW=ON \
  -DUSE_SYSTEM_RAPIDJSON=ON
%cmake_build

%install
install -Dpm 755 neo/build/RBDoom3BFG %{buildroot}%{_libexecdir}/%{name}/%{name}
install -pm  755 neo/build/tools/compilers/rbdmap %{buildroot}%{_libexecdir}/%{name}/rbdmap
mv -v base/ %{buildroot}%{_libexecdir}/%{name}/
install -Dpm 755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}

%check

%files
%license LICENSE_EXCEPTIONS.md LICENSE.md
%doc README.md RELEASE-NOTES.md
%{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{name}
%{_bindir}/rbdoom3bfg

%changelog
openSUSE Build Service is sponsored by