File fix-python-detection.patch of Package saga-gis

Index: src/saga_core/saga_api/saga_api_python/CMakeLists.txt
===================================================================
--- src/saga_core/saga_api/saga_api_python/CMakeLists.txt.orig
+++ src/saga_core/saga_api/saga_api_python/CMakeLists.txt
@@ -25,7 +25,10 @@
 find_package(SWIG QUIET)
 if(SWIG_FOUND)
 	message(STATUS "SWIG for Python found")
-	find_package(Python COMPONENTS Interpreter Development)
+	set (Python_FIND_UNVERSIONED_NAMES "FIRST")
+	set (Python_FIND_STRATEGY "LOCATION")
+	set (Python_FIND_ABI "OFF" "OFF" "OFF" "OFF")
+	find_package(Python 3 COMPONENTS Interpreter Development)
 	if(Python_FOUND)
 #		project(saga_api_python)
openSUSE Build Service is sponsored by