public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openlierox] rawhide: Fix FTBFS with CMake 4.x by setting 'CMAKE_POLICY_VERSION_MINIMUM=3.5'
@ 2026-07-15 19:40 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-15 19:40 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/openlierox
            Branch : rawhide
            Commit : ead08ba39a148f42892d5a8e2c972f45b9d12238
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-13T19:19:59+02:00
            Stats  : +6/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/openlierox/c/ead08ba39a148f42892d5a8e2c972f45b9d12238?branch=rawhide

            Log:
            Fix FTBFS with CMake 4.x by setting 'CMAKE_POLICY_VERSION_MINIMUM=3.5'

CMake 4.x removed compatibility with 'cmake_minimum_required' versions
below 3.5. While the existing 'openlierox_CMake4.0.patch' bumps the
version in the main 'CMakeLists.txt' and 'CMakeOlxCommon.cmake', add
'-DCMAKE_POLICY_VERSION_MINIMUM=3.5' to the '%cmake' invocation as a
global override to catch any remaining cmake files with old version
requirements.

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/openlierox.spec b/openlierox.spec
index 30d9ac6..5a93925 100644
--- a/openlierox.spec
+++ b/openlierox.spec
@@ -4,7 +4,7 @@ Name:           openlierox
 # Because we downgraded from 0.59 to 0.58 as 0.59 never became stable
 Epoch:          1
 Version:        0.58
-Release:        0.39.%{prever}%{?dist}
+Release:        0.40.%{prever}%{?dist}
 Summary:        Addictive realtime multi-player 2D shoot-em-up
 # Automatically converted from old format: LGPLv2+ - review is highly recommended.
 License:        LicenseRef-Callaway-LGPLv2+
@@ -53,7 +53,8 @@ rm -rf share/gamedir/scripts share/gamedir/cfg/*.py
 
 
 %build
-%cmake -DDEBUG=OFF -DHAWKNL_BUILTIN=OFF -DBREAKPAD=OFF -DSYSTEM_DATA_DIR=%{_datadir}
+%cmake -DDEBUG=OFF -DHAWKNL_BUILTIN=OFF -DBREAKPAD=OFF -DSYSTEM_DATA_DIR=%{_datadir} \
+       -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 %cmake_build
 
 
@@ -90,6 +91,9 @@ appstream-util validate-relax --nonet \
 
 
 %changelog
+* Mon Jul 13 2026 Michal Schorm <mschorm@redhat.com> - 1:0.58-0.40.rc5
+- Fix FTBFS with CMake 4.x by setting 'CMAKE_POLICY_VERSION_MINIMUM=3.5'
+
 * Mon Feb 16 2026 Cristian Le <git@lecris.dev> - 1:0.58-0.39.rc5
 - Allow to build with Ninja (rhbz#2381087)
 - Allow to build with CMake 4.0 (rhbz#2381339)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-15 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-15 19:40 [rpms/openlierox] rawhide: Fix FTBFS with CMake 4.x by setting 'CMAKE_POLICY_VERSION_MINIMUM=3.5' Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox