diff --git a/libproxy-0.4.17-python-311.patch b/libproxy-0.4.17-python-311.patch new file mode 100644 index 0000000..040193a --- /dev/null +++ b/libproxy-0.4.17-python-311.patch @@ -0,0 +1,25 @@ +From f9cf48ecc25676ef245182821b71362074c9845d Mon Sep 17 00:00:00 2001 +From: David King +Date: Mon, 20 Jun 2022 11:36:42 +0100 +Subject: [PATCH] python: Accept Python 3.11 + +--- + cmake/FindPython3Interp.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/FindPython3Interp.cmake b/cmake/FindPython3Interp.cmake +index cc82c47..d2f5d74 100644 +--- a/cmake/FindPython3Interp.cmake ++++ b/cmake/FindPython3Interp.cmake +@@ -56,7 +56,7 @@ + + unset(_Python3_NAMES) + +-set(_Python3_VERSIONS 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) ++set(_Python3_VERSIONS 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) + + if(Python3Interp_FIND_VERSION) + if(Python3Interp_FIND_VERSION_COUNT GREATER 1) +-- +2.36.1 + diff --git a/libproxy.spec b/libproxy.spec index 588c0cc..6c9cd52 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -14,6 +14,8 @@ Source0: https://github.com/libproxy/%{name}/releases/download/%{name}-%{ Source1: proxy.1 # https://bugzilla.redhat.com/show_bug.cgi?id=1898060 Patch0: libproxy-0.4.17-fix-python-version-check.patch +# https://github.com/libproxy/libproxy/pull/178 +Patch1: libproxy-0.4.17-python-311.patch BuildRequires: cmake >= 2.6.0 BuildRequires: gcc-c++ @@ -210,8 +212,8 @@ install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1 %changelog -* Mon Jun 13 2022 Python Maint - 0.4.17-6 -- Rebuilt for Python 3.11 +* Mon Jun 20 2022 David King - 0.4.17-6 +- Accept Python 3.11 (#2098739) * Mon Mar 28 2022 David King - 0.4.17-5 - Fix build (#2069137)