diff --git a/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch b/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch deleted file mode 100644 index 73cf602d9d99380c7baf49c01f1e5076e6421251..0000000000000000000000000000000000000000 --- a/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/pymongo/pool.py b/pymongo/pool.py -index 9aed758..be87816 100644 ---- a/pymongo/pool.py -+++ b/pymongo/pool.py -@@ -61,7 +61,7 @@ from pymongo.read_preferences import ReadPreference - from pymongo.server_type import SERVER_TYPE - 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/pymongo-3.11.3.tar.gz b/pymongo-3.11.3.tar.gz deleted file mode 100644 index 6ede811fa868e8bc714ad90774c98654c3e066f9..0000000000000000000000000000000000000000 Binary files a/pymongo-3.11.3.tar.gz and /dev/null differ diff --git a/pymongo-4.0.tar.gz b/pymongo-4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d873e8509188e5b69bd531855e47e86d92a623be Binary files /dev/null and b/pymongo-4.0.tar.gz differ diff --git a/python-pymongo.spec b/python-pymongo.spec index 99f8b5675d58c76f0732733b3f0a21b390487656..63bb038221c514cedff1c13a124e60c9f4c69b76 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,11 +1,11 @@ Name: python-pymongo -Version: 3.11.3 +Version: 4.0 Release: 1 License: Apache License 2.0 Summary: PyMongo - the Python driver for MongoDB URL: https://github.com/mongodb/mongo-python-driver -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 +Source0: https://files.pythonhosted.org/packages/76/53/5699ae682e600fd9816934ccaf3d0898b4782c00a24700c802c637b5373a/pymongo-4.0.tar.gz +# Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch BuildRequires: python3-devel python3-setuptools BuildRequires: python3-sphinx gcc @@ -50,8 +50,8 @@ The PyMongo distribution contains tools for interacting with MongoDB database fr %prep -%autosetup -n pymongo-3.11.3 -p1 -rm pymongo/ssl_match_hostname.py +%autosetup -n pymongo-%{version} -p1 +# rm pymongo/ssl_match_hostname.py %build %py3_build @@ -85,6 +85,9 @@ python3 setup.py test %{_pkgdocdir} %changelog +* Sun Jul 24 2022 liksh - 4.0-1 +- upgrade to 4.0 for openstack yoga + * Fri Aug 06 2021 OpenStack_SIG - 3.11.3-1 - Update version to 3.11.3 @@ -94,7 +97,7 @@ python3 setup.py test * Wed Oct 21 2020 chengzihan - 3.9.0-4 - Remove subpackage python2-bson, python2-pymongo, python2-pymongo-gridfs -* Thu 10 2020 liuweibo - 3.9.0-3 +* Wed Oct 21 2020 liuweibo - 3.9.0-3 - Fix Source0 * Fri Feb 21 2020 shanshishi - 3.9.0-2