From d043e86b18aabbc46694b918c329604e24ed30b4 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 27 Jun 2018 06:43:01 +0100 Subject: [PATCH] Fix detection of Python 3.7 (and 3.8) --- libproxy-0.4.15-python3738.patch | 26 ++++++++++++++++++++++++++ libproxy.spec | 1 + 2 files changed, 27 insertions(+) create mode 100644 libproxy-0.4.15-python3738.patch diff --git a/libproxy-0.4.15-python3738.patch b/libproxy-0.4.15-python3738.patch new file mode 100644 index 0000000..39fdf40 --- /dev/null +++ b/libproxy-0.4.15-python3738.patch @@ -0,0 +1,26 @@ +From 2d6da65598b90480b4a62c4633eda035ea51681f Mon Sep 17 00:00:00 2001 +From: David King +Date: Wed, 27 Jun 2018 06:36:00 +0100 +Subject: [PATCH] python: support Python 3.7 and 3.8 + +Add 3.7 and 3.8 to the list of accepted Python 3 versions. +--- + cmake/FindPython3Interp.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/FindPython3Interp.cmake b/cmake/FindPython3Interp.cmake +index c6cbe3d..8e5e409 100644 +--- a/cmake/FindPython3Interp.cmake ++++ b/cmake/FindPython3Interp.cmake +@@ -39,7 +39,7 @@ + + unset(_Python3_NAMES) + +-set(_Python3_VERSIONS 3.6 3.5 3.4 3.3 3.2 3.1 3.0) ++set(_Python3_VERSIONS 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.17.1 + diff --git a/libproxy.spec b/libproxy.spec index cd8b8f8..463dc95 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -15,6 +15,7 @@ Source1: proxy.1 # http://code.google.com/p/libproxy/issues/detail?id=152 Patch0: 0001-Add-config-module-for-querying-PacRunner-d-mon.patch Patch1: libproxy-0.4.11-crash.patch +Patch2: libproxy-0.4.15-python3738.patch BuildRequires: cmake >= 2.6.0 BuildRequires: gcc-c++