File 0022-Fix-finding-patch-on-tumbleweed.patch of Package mingw32-python3

diff -ubr python-cmake-buildsystem-master+git.bb45aa7.orig/cmake/FindPatch.cmake python-cmake-buildsystem-master+git.bb45aa7/cmake/FindPatch.cmake
--- python-cmake-buildsystem-master+git.bb45aa7.orig/cmake/FindPatch.cmake	2022-01-26 00:12:45.000000000 +0100
+++ python-cmake-buildsystem-master+git.bb45aa7/cmake/FindPatch.cmake	2025-04-23 17:27:30.247531039 +0200
@@ -67,6 +67,11 @@
   set(_patch_version_regex ".*patch ([0-9]+\\.[0-9]+\\.[0-9]+)")
   if(patch_version MATCHES "${_patch_version_regex}")
     set(Patch_VERSION ${CMAKE_MATCH_1})
+  else()
+    set(_patch_version_regex ".*patch ([0-9]+\\.[0-9]+)")
+    if(patch_version MATCHES "${_patch_version_regex}")
+      set(Patch_VERSION ${CMAKE_MATCH_1})
+    endif()
   endif()
 endif()
 
openSUSE Build Service is sponsored by