%global VERSION_YEAR 2025 %global VERSION_NUMBER 3 Name: trenchbroom Version: %{VERSION_YEAR}.%{VERSION_NUMBER} Release: 0 Summary: Cross-Platform Level Editor License: GPL-3.0-or-later and BSD-3-Clause and MIT URL: https://github.com/TrenchBroom/TrenchBroom Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz Patch: 0001-disable-vcpkg.patch %if 0%{?fedora} <= 42 Patch: 0002-backport-to-older-miniz.patch %endif Patch: 0003-disable-update-check-by-default.patch Patch: 0004-Update-kdl-and-upd-to-be-static-libraries.patch Patch: 0005-Set-build-info-via-options.patch BuildRequires: gcc gcc-c++ BuildRequires: cmake BuildRequires: assimp-devel BuildRequires: freeimage-devel # next release will require catch3 BuildRequires: catch2-devel BuildRequires: fmt-devel BuildRequires: miniz-devel BuildRequires: tinyxml2-devel BuildRequires: git %description TrenchBroom is a modern cross-platform level editor for Quake-engine based games. %prep %autosetup -n TrenchBroom-%{version} -p1 %build %cmake \ -DBUILD_VERSION_YEAR:STRING="%{VERSION_YEAR}" \ -DBUILD_VERSION_NUMBER:STRING="%{VERSION_NUMBER}" \ -DBUILD_PLATFORM_NAME:STRING="Fedora" %cmake_build %install %cmake_install %check pushd %{__cmake_builddir}/common/test ./common-regression-test ./common-test popd %{__cmake_builddir}/lib/kdl/test/kdl-test %{__cmake_builddir}/lib/vm/test/vm-test %files %license LICENSE.txt %{_bindir}/trenchbroom %{_datadir}/TrenchBroom %{_datadir}/mime/packages/trenchbroom.xml %changelog