Update to 3.3.0 (#1356334).
Several additional improvements were made, and are documented in the changelog.
This commit is contained in:
parent
d575e07345
commit
5c3cd202f4
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,3 +7,4 @@
|
|||||||
/3.2.tar.gz
|
/3.2.tar.gz
|
||||||
/3.2.1.tar.gz
|
/3.2.1.tar.gz
|
||||||
/3.2.2.tar.gz
|
/3.2.2.tar.gz
|
||||||
|
/3.3.0.tar.gz
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
From ceb275ef3c63d4324e05539242283de083bd08d6 Mon Sep 17 00:00:00 2001
|
From e6adec8cae7c4a7840fb012c6479856caaf18aba Mon Sep 17 00:00:00 2001
|
||||||
From: Randy Barlow <randy@electronsweatshop.com>
|
From: Randy Barlow <bowlofeggs@electronsweatshop.com>
|
||||||
Date: Wed, 3 Feb 2016 22:10:28 -0500
|
Date: Fri, 15 Jul 2016 10:12:16 -0400
|
||||||
Subject: [PATCH] Use ssl.match_hostname from the Python stdlib.
|
Subject: [PATCH] Use ssl.match_hostname from the Python stdlib.
|
||||||
|
|
||||||
|
This patch removes 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 also adjusts imports so that they exclusively
|
||||||
|
use the code from Python.
|
||||||
---
|
---
|
||||||
pymongo/errors.py | 5 +--
|
pymongo/errors.py | 5 +--
|
||||||
pymongo/pool.py | 6 +--
|
pymongo/pool.py | 6 +--
|
||||||
@ -11,7 +16,7 @@ Subject: [PATCH] Use ssl.match_hostname from the Python stdlib.
|
|||||||
delete mode 100644 pymongo/ssl_match_hostname.py
|
delete mode 100644 pymongo/ssl_match_hostname.py
|
||||||
|
|
||||||
diff --git a/pymongo/errors.py b/pymongo/errors.py
|
diff --git a/pymongo/errors.py b/pymongo/errors.py
|
||||||
index fe7b71a..0ba6006 100644
|
index fb4c9e4..e8e6350 100644
|
||||||
--- a/pymongo/errors.py
|
--- a/pymongo/errors.py
|
||||||
+++ b/pymongo/errors.py
|
+++ b/pymongo/errors.py
|
||||||
@@ -16,10 +16,7 @@
|
@@ -16,10 +16,7 @@
|
||||||
@ -27,12 +32,12 @@ index fe7b71a..0ba6006 100644
|
|||||||
|
|
||||||
class PyMongoError(Exception):
|
class PyMongoError(Exception):
|
||||||
diff --git a/pymongo/pool.py b/pymongo/pool.py
|
diff --git a/pymongo/pool.py b/pymongo/pool.py
|
||||||
index 904c6b1..5fe663c 100644
|
index 6e9cc75..41bef83 100644
|
||||||
--- a/pymongo/pool.py
|
--- a/pymongo/pool.py
|
||||||
+++ b/pymongo/pool.py
|
+++ b/pymongo/pool.py
|
||||||
@@ -44,11 +44,7 @@ from pymongo.server_type import SERVER_TYPE
|
@@ -44,11 +44,7 @@ from pymongo.server_type import SERVER_TYPE
|
||||||
# main thread, to avoid the deadlock. See PYTHON-607.
|
# main thread, to avoid the deadlock. See PYTHON-607.
|
||||||
u('foo').encode('idna')
|
u'foo'.encode('idna')
|
||||||
|
|
||||||
-try:
|
-try:
|
||||||
- from ssl import match_hostname, CertificateError
|
- from ssl import match_hostname, CertificateError
|
||||||
@ -150,5 +155,5 @@ index f74df15..0000000
|
|||||||
- raise CertificateError("no appropriate commonName or "
|
- raise CertificateError("no appropriate commonName or "
|
||||||
- "subjectAltName fields were found")
|
- "subjectAltName fields were found")
|
||||||
--
|
--
|
||||||
2.7.0
|
2.9.0
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Name: python-pymongo
|
Name: python-pymongo
|
||||||
Version: 3.2.2
|
Version: 3.3.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT
|
# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT
|
||||||
@ -27,16 +27,14 @@ BuildRequires: python2-sphinx
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
# Mongodb must run on a little-endian CPU (see bug #630898)
|
|
||||||
ExcludeArch: ppc ppc64 %{sparc} s390 s390x
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Python driver for MongoDB.
|
The Python driver for MongoDB.
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for python-pymongo
|
BuildArch: noarch
|
||||||
|
Summary: Documentation for python-pymongo
|
||||||
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
@ -93,7 +91,7 @@ this module.
|
|||||||
|
|
||||||
%package -n python2-pymongo-gridfs
|
%package -n python2-pymongo-gridfs
|
||||||
Summary: Python GridFS driver for MongoDB
|
Summary: Python GridFS driver for MongoDB
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: python2-pymongo%{?_isa} = %{version}-%{release}
|
||||||
Provides: pymongo-gridfs = %{version}-%{release}
|
Provides: pymongo-gridfs = %{version}-%{release}
|
||||||
Obsoletes: pymongo-gridfs <= 2.1.1-4
|
Obsoletes: pymongo-gridfs <= 2.1.1-4
|
||||||
%{?python_provide:%python_provide python2-pymongo-gridfs}
|
%{?python_provide:%python_provide python2-pymongo-gridfs}
|
||||||
@ -124,19 +122,18 @@ cp -a . %{py3dir}
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" %{__python2} setup.py build
|
%py2_build
|
||||||
|
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
CFLAGS="%{optflags}" %{__python3} setup.py build
|
%py3_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd doc
|
pushd doc
|
||||||
make html
|
make %{?_smp_mflags} html
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
# Fix permissions
|
# Fix permissions
|
||||||
chmod 755 %{buildroot}%{python2_sitearch}/bson/*.so
|
chmod 755 %{buildroot}%{python2_sitearch}/bson/*.so
|
||||||
@ -270,6 +267,7 @@ exclude+='|^test_command_monitoring_spec$'
|
|||||||
exclude+='|^test_gridfs_spec$'
|
exclude+='|^test_gridfs_spec$'
|
||||||
exclude+='|^test_uri_spec$'
|
exclude+='|^test_uri_spec$'
|
||||||
exclude+='|^test_legacy_api$'
|
exclude+='|^test_legacy_api$'
|
||||||
|
exclude+='|^test_sdam_monitoring_spec$'
|
||||||
exclude+='|^test_raw_bson$'
|
exclude+='|^test_raw_bson$'
|
||||||
exclude+=')'
|
exclude+=')'
|
||||||
pushd test
|
pushd test
|
||||||
@ -278,6 +276,15 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 15 2016 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.3.0-1
|
||||||
|
- Update to 3.3.0 (#1356334).
|
||||||
|
- Remove the exclude arch on big endian systems, since 3.3.0 now supports them.
|
||||||
|
- Use the newer Python build macros.
|
||||||
|
- Add a skip test on another test that requires a running mongod.
|
||||||
|
- Convert the -doc subpackage into a noarch, as it should be.
|
||||||
|
- python2-pymongo-gridfs now requires python2-pymongo(isa) instead of python-pymongo(isa).
|
||||||
|
- Build the docs in parallel.
|
||||||
|
|
||||||
* Tue Mar 15 2016 Randy Barlow <rbarlow@redhat.com> - 3.2.2-1
|
* Tue Mar 15 2016 Randy Barlow <rbarlow@redhat.com> - 3.2.2-1
|
||||||
- Update to 3.2.2 (#1318073).
|
- Update to 3.2.2 (#1318073).
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user