Accept Python 3.11 (#2098739)

This commit is contained in:
David King 2022-06-20 11:47:13 +01:00
parent 5dd6f09d60
commit 359cdb1a26
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From f9cf48ecc25676ef245182821b71362074c9845d Mon Sep 17 00:00:00 2001
From: David King <amigadave@amigadave.com>
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

View File

@ -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 <python-maint@redhat.com> - 0.4.17-6
- Rebuilt for Python 3.11
* Mon Jun 20 2022 David King <amigadave@amigadave.com> - 0.4.17-6
- Accept Python 3.11 (#2098739)
* Mon Mar 28 2022 David King <amigadave@amigadave.com> - 0.4.17-5
- Fix build (#2069137)