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 9de0fdf..73cf602 100644 --- a/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch +++ b/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch @@ -1,14 +1,13 @@ diff --git a/pymongo/pool.py b/pymongo/pool.py -index 859d0e0..f55fd8e 100644 +index 9aed758..be87816 100644 --- a/pymongo/pool.py +++ b/pymongo/pool.py -@@ -49,8 +49,7 @@ from pymongo.network import (command, - SocketChecker) - from pymongo.read_preferences import ReadPreference +@@ -61,7 +61,7 @@ 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 --from pymongo.ssl_match_hostname import match_hostname, CertificateError -+from ssl import match_hostname, CertificateError + from pymongo.socket_checker import SocketChecker + # Always use our backport so we always have support for IP address matching +-from pymongo.ssl_match_hostname import match_hostname ++from ssl import match_hostname # For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are # not permitted for SNI hostname. diff --git a/3.9.0.tar.gz b/3.9.0.tar.gz deleted file mode 100644 index bf5f248..0000000 Binary files a/3.9.0.tar.gz and /dev/null differ diff --git a/pymongo-3.11.3.tar.gz b/pymongo-3.11.3.tar.gz new file mode 100644 index 0000000..6ede811 Binary files /dev/null and b/pymongo-3.11.3.tar.gz differ diff --git a/python-pymongo.spec b/python-pymongo.spec index e3b50e0..99f8b56 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,10 +1,10 @@ Name: python-pymongo -Version: 3.9.0 -Release: 5 +Version: 3.11.3 +Release: 1 License: Apache License 2.0 Summary: PyMongo - the Python driver for MongoDB URL: https://github.com/mongodb/mongo-python-driver -Source0: https://github.com/mongodb/mongo-python-driver/archive/%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/72/82/e7196f2f69318dd206db26db68fcfa0ff821d88fbca6d0f0c7b678ba0353/pymongo-3.11.3.tar.gz Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch BuildRequires: python3-devel python3-setuptools @@ -46,25 +46,23 @@ BuildArch: noarch Summary: Development documents for python-pymongo %description help -%{summary}. +The PyMongo distribution contains tools for interacting with MongoDB database from Python. %prep -%autosetup -n mongo-python-driver-%{version} -p1 +%autosetup -n pymongo-3.11.3 -p1 rm pymongo/ssl_match_hostname.py %build %py3_build -pushd doc -make %{?_smp_mflags} html -popd +PYTHONPATH=${PYTHONPATH}:/usr/local/lib64/python3.8/site-packages:/usr/local/lib/python3.8/site-packages %{__python3} setup.py doc %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} -cp -arf doc/_build/html/* %{buildroot}/%{_pkgdocdir} +cp -arf doc/_build/%{version}/* %{buildroot}/%{_pkgdocdir} %check python3 setup.py test @@ -87,6 +85,9 @@ python3 setup.py test %{_pkgdocdir} %changelog +* Fri Aug 06 2021 OpenStack_SIG - 3.11.3-1 +- Update version to 3.11.3 + * Mon May 31 2021 huanghaitao - 3.9.0-5 - Completing build dependencies