File qpid-pythonbuild.patch of Package qpid-proton

Index: qpid-proton-0.38.0/python/CMakeLists.txt
===================================================================
--- qpid-proton-0.38.0.orig/python/CMakeLists.txt
+++ qpid-proton-0.38.0/python/CMakeLists.txt
@@ -132,8 +132,8 @@ if (CHECK_SYSINSTALL_PYTHON)
     endforeach (src_file)
   endmacro(py_compile)
 
-  py_compile(${CMAKE_CURRENT_BINARY_DIR} ${pysrc-generated} CPROTON_ARTIFACTS)
-  py_compile(${CMAKE_CURRENT_SOURCE_DIR} "${pysrc}" PROTON_ARTIFACTS)
+  # py_compile(${CMAKE_CURRENT_BINARY_DIR} ${pysrc-generated} CPROTON_ARTIFACTS)
+  # py_compile(${CMAKE_CURRENT_SOURCE_DIR} "${pysrc}" PROTON_ARTIFACTS)
 
   install(FILES ${CPROTON_ARTIFACTS}
           DESTINATION ${PYTHON_SITEARCH_PACKAGES}
@@ -185,7 +185,8 @@ endforeach()
 
 # Make python source and binary packages if we have prerequisistes
 check_python_module("setuptools" SETUPTOOLS_MODULE_FOUND)
-check_python_module("wheel" WHEEL_MODULE_FOUND)
+#check_python_module("wheel" WHEEL_MODULE_FOUND)
+set(WHEEL_MODULE_FOUND FALSE)
 if (SETUPTOOLS_MODULE_FOUND)
   add_custom_target(py_pkg_src ALL
                      WORKING_DIRECTORY dist
Index: qpid-proton-0.38.0/CMakeLists.txt
===================================================================
--- qpid-proton-0.38.0.orig/CMakeLists.txt
+++ qpid-proton-0.38.0/CMakeLists.txt
@@ -42,7 +42,7 @@ endif ()
 if (NOT DEFINED Python_FIND_FRAMEWORK)
   set(Python_FIND_FRAMEWORK "LAST")
 endif ()
-find_package(Python 3.6
+find_package(Python 3.11
         REQUIRED COMPONENTS Interpreter
         OPTIONAL_COMPONENTS Development)
 
Index: qpid-proton-0.38.0/tools/cmake/Modules/FindPython.cmake
===================================================================
--- qpid-proton-0.38.0.orig/tools/cmake/Modules/FindPython.cmake
+++ qpid-proton-0.38.0/tools/cmake/Modules/FindPython.cmake
@@ -24,10 +24,16 @@ if (POLICY CMP0094)  # https://cmake.org
     cmake_policy(SET CMP0094 NEW)  # FindPython should return the first matching Python on PATH
 endif ()
 
+# Prefer the newest Python interpreter found
+set(Python_FIND_STRATEGY VERSION)
+set(Python_FIND_UNVERSIONED_NAMES NEVER)
+
 if (DEFINED PYTHON_EXECUTABLE AND DEFINED Python_EXECUTABLE)
     message(FATAL_ERROR "Both PYTHON_EXECUTABLE and Python_EXECUTABLE are defined. Define at most one of those.")
 endif ()
 
+
+
 # FindPython was added in CMake 3.12, but there it always returned
 #  newest Python on the entire PATH. We want to use the first one.
 if (CMAKE_VERSION VERSION_LESS "3.15.0")
openSUSE Build Service is sponsored by