File theforceengine.spec of Package theforceengine
#
# spec file for package theforceengine
#
# Copyright (c) 2023-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: theforceengine
Version: 1.22.420
Release: 0
Summary: A "Star Wars: Dark Forces" source port
License: GPL-2.0-only
Group: Amusements/Games/3D/Shoot
#Git-Clone: https://github.com/luciusDXL/TheForceEngine.git
URL: https://theforceengine.github.io/
Source: TheForceEngine-%{version}.tar.xz
Source99: %{name}-rpmlintrc
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(rtmidi) >= 5.0.0
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(SDL2_image)
#[ 23s] In file included from /home/abuild/rpmbuild/BUILD/theforceengine-1.22.300-build/TheForceEngine-1.22.300/TheForceEngine/TFE_Ui/imGUI/imgui_impl_sdl2.cpp:94:
#[ 23s] /usr/include/SDL2/SDL_syswm.h:68:10: fatal error: X11/Xlib.h: No such file or directory
#[ 23s] 68 | #include <X11/Xlib.h>
BuildRequires: libX11-devel
%description
Modern "Jedi Engine" replacement supporting Dark Forces, Outlaws
and the mods.
NOTE:
To play these games with TheForceEngine you need the original
game files!
%prep
%autosetup -p1 -n TheForceEngine-%{version}
%build
# game segfaults with LTO enabled
%define _lto_cflags %nil
%cmake \
-DENABLE_EDITOR=ON
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md
%{_bindir}/theforceengine
%{_datadir}/TheForceEngine
%{_datadir}/applications/io.github.theforceengine.tfe.desktop
%{_datadir}/icons/hicolor/scalable/apps/io.github.theforceengine.tfe.svg
%{_datadir}/metainfo/io.github.theforceengine.tfe.Mod.AdjustableHud.metainfo.xml
%{_datadir}/metainfo/io.github.theforceengine.tfe.metainfo.xml
%changelog