diff --git a/0000_CMake_FindPython3_13.patch b/0000_CMake_FindPython3_13.patch new file mode 100644 index 0000000..53782b6 --- /dev/null +++ b/0000_CMake_FindPython3_13.patch @@ -0,0 +1,21 @@ +diff --git a/cmake/modules/FindPythonEasy.cmake b/cmake/modules/FindPythonEasy.cmake +index 0e13c0a..b829e94 100644 +--- a/cmake/modules/FindPythonEasy.cmake ++++ b/cmake/modules/FindPythonEasy.cmake +@@ -15,7 +15,7 @@ + LIST(APPEND L_PYTHON_VERSIONS + "1.5" "1.6" + "2.0" "2.1" "2.2" "2.4" "2.5" "2.6" "2.7" "2.8" +- "3" "3.0" "3.1" "3.2" "3.3" "3.4" "3.5" "3.6" "3.7" "3.8" "3.9" "3.10" "3.11" "3.12" ++ "3" "3.0" "3.1" "3.2" "3.3" "3.4" "3.5" "3.6" "3.7" "3.8" "3.9" "3.10" "3.11" "3.12" "3.13" + ) + + INCLUDE(FindPackageHandleStandardArgs) +@@ -28,6 +28,7 @@ INCLUDE(FindPackageHandleStandardArgs) + HINTS + ${ALT_PYTHON_LOCATION}/bin + PATHS ++ [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.13\\InstallPath] + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.12\\InstallPath] + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.11\\InstallPath] + [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.10\\InstallPath] diff --git a/gfal2-python.spec b/gfal2-python.spec index f5ab524..a198491 100644 --- a/gfal2-python.spec +++ b/gfal2-python.spec @@ -39,7 +39,7 @@ Name: gfal2-python Version: 1.12.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python bindings for gfal 2 License: ASL 2.0 URL: http://dmc.web.cern.ch/ @@ -49,6 +49,7 @@ URL: http://dmc.web.cern.ch/ # popd # tar czf gfal2-python-1.12.1.tar.gz --exclude-vcs gfal2-python-1.12.1 Source0: %{name}-%{version}.tar.gz +Patch0: 0000_CMake_FindPython3_13.patch BuildRequires: gcc-c++ BuildRequires: cmake3 @@ -121,6 +122,7 @@ Documentation files for %{name}. %prep %setup -q +%patch0 -p1 %build # Make sure the version in the spec file and the version used @@ -177,6 +179,9 @@ fi %endif %changelog +* Tue Nov 21 2023 Mihai Patrascoiu - 1.12.1-2 +- Patch for the Python 3.13 rebuild (close RHBZ#2250873) + * Tue Sep 05 2023 Mihai Patrascoiu - 1.12.1-1 - Upgrade to upstream release 1.12.1 - Closes bugzilla#2154855, bugzilla#2220000, bugzilla#2225821