From d81065b50c208c86d05465aa8160957687fc493d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Skalick=C3=BD?= Date: Tue, 20 Feb 2018 09:26:03 +0100 Subject: [PATCH] Rebase to latest release --- .gitignore | 1 + ...atch_hostname-from-the-Python-stdlib.patch | 40 +------------------ python-pymongo.spec | 7 +++- sources | 2 +- 4 files changed, 9 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index 5fbaf63..b3f61fa 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /3.3.0.tar.gz /3.4.0.tar.gz /3.5.1.tar.gz +/3.6.0.tar.gz diff --git a/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch b/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch index 1a3e546..9de0fdf 100644 --- a/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch +++ b/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch @@ -1,42 +1,9 @@ -From 2ceb8396c6bb3c5ef486a971f2a091f8d702fc15 Mon Sep 17 00:00:00 2001 -From: Randy Barlow -Date: Sun, 18 Dec 2016 17:37:39 -0500 -Subject: [PATCH] Use ssl_match_hostname from Python's stdlib. - -The patch removes the usage of the bundled ssl.match_hostname library as it was -vulnerable to CVE-2013-7440 and CVE-2013-2099, and wasn't needed -anyway since Fedora >= 22 has the needed module in the Python -standard library. It adjusts imports so that they exclusively -use the code from Python. - -Fixes CVE-2013-2099 and CVE-2013-7440. ---- - pymongo/errors.py | 5 +---- - pymongo/pool.py | 3 +-- - 2 files changed, 2 insertions(+), 6 deletions(-) - -diff --git a/pymongo/errors.py b/pymongo/errors.py -index fb4c9e48..e8e6350b 100644 ---- a/pymongo/errors.py -+++ b/pymongo/errors.py -@@ -16,10 +16,7 @@ - - from bson.errors import * - --try: -- from ssl import CertificateError --except ImportError: -- from pymongo.ssl_match_hostname import CertificateError -+from ssl import CertificateError - - - class PyMongoError(Exception): diff --git a/pymongo/pool.py b/pymongo/pool.py -index d6c5b773..5ca82c2d 100644 +index 859d0e0..f55fd8e 100644 --- a/pymongo/pool.py +++ b/pymongo/pool.py @@ -49,8 +49,7 @@ from pymongo.network import (command, - from pymongo.read_concern import DEFAULT_READ_CONCERN + SocketChecker) from pymongo.read_preferences import ReadPreference from pymongo.server_type import SERVER_TYPE -# Always use our backport so we always have support for IP address matching @@ -45,6 +12,3 @@ index d6c5b773..5ca82c2d 100644 # For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are # not permitted for SNI hostname. --- -2.11.0 - diff --git a/python-pymongo.spec b/python-pymongo.spec index 7a66a9e..5f9188f 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -5,8 +5,8 @@ } Name: python-pymongo -Version: 3.5.1 -Release: 2%{?dist} +Version: 3.6.0 +Release: 1%{?dist} # All code is ASL 2.0 except bson/time64*.{c,h} which is MIT License: ASL 2.0 and MIT @@ -228,6 +228,9 @@ pkill mongod %changelog +* Mon Feb 19 2018 Marek Skalický - 3.6.0-1 +- Rebase to latest release + * Fri Feb 09 2018 Fedora Release Engineering - 3.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index 57268f1..1cc97c5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (3.5.1.tar.gz) = aab4d4016042f81f087833eac4da4f51ca08cfc1f7a67aeda322227bb511165c6d4fecfd1ec02c153ac827a8d6d34962fb206a7a1000e16fc438bb8f6ced4c49 +SHA512 (3.6.0.tar.gz) = d919c64d6d3747f1761e411232f2e8d32cb40585bc3b46582085902b5414fade0fbb3febc847c88ec205a29f134ab070f8275eb1df033edc25123b3f0a6acf4d