File cmake_python_version.diff of Package rpm

--- CMakeLists.txt.orig	2024-12-16 09:43:16.909001370 +0000
+++ CMakeLists.txt	2024-12-16 09:45:05.892776434 +0000
@@ -277,7 +277,11 @@ endif()
 list(APPEND db_backends dummy)
 
 if (ENABLE_PYTHON)
-	find_package(Python3 3.7 COMPONENTS Interpreter Development REQUIRED)
+	if (WITH_PYTHON_VERSION)
+	    find_package(Python3 ${WITH_PYTHON_VERSION} EXACT COMPONENTS Interpreter Development REQUIRED)
+	else()
+	    find_package(Python3 3.7 COMPONENTS Interpreter Development REQUIRED)
+	endif()
 endif()
 
 if (WITH_CAP)
openSUSE Build Service is sponsored by