Skip to content

Commit 41af91b

Browse files
Upgrade: python-pymongo version to 4.2.0 (#11637)
1 parent 3737c09 commit 41af91b

4 files changed

Lines changed: 63 additions & 56 deletions

File tree

SPECS-EXTENDED/python-pymongo/SOURCES/0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Signatures": {
3-
"pymongo-3.10.1.tar.gz": "24dc5aa6f379de44ce5299b610d72e92a401a2b4fdac3516dfed536cc5b080fe"
4-
}
5-
}
2+
"Signatures": {
3+
"python-pymongo-4.2.0.tar.gz": "efd44e18a6f16156f8495d7786afbdc3952d1d09cfe9ad022bee3b86a6535e3f"
4+
}
5+
}

SPECS-EXTENDED/python-pymongo/python-pymongo.spec

Lines changed: 57 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
11
%global bootstrap 0
22

3-
%{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
4-
%{!?__python3: %global __python3 /usr/bin/python3}
5-
%{!?py3_build: %define py3_build CFLAGS="%{optflags}" %{__python3} setup.py build}
6-
%{!?py3_install: %define py3_install %{__python3} setup.py install --skip-build --root %{buildroot}}
7-
83
Name: python-pymongo
9-
Version: 3.10.1
10-
Release: 6%{?dist}
11-
# All code is ASL 2.0 except for:
12-
# - bson/time64*.{c,h} - MIT,
13-
# - encoding_helpers.c - Unicode with a "Portions Copyright 2001 Unicode, Inc." header,
14-
# - ssl_match_hostname.py - Python-2.0
15-
License: ASL 2.0 and MIT and Python-2.0 and Unicode
16-
Summary: Python driver for MongoDB
17-
URL: https://github.com/mongodb/mongo-python-driver
4+
Version: 4.2.0
5+
Release: 9%{?dist}
6+
# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT
7+
License: ASL 2.0 and MIT
188
Vendor: Microsoft Corporation
199
Distribution: Azure Linux
20-
Source0: https://github.com/mongodb/mongo-python-driver/archive/%{version}/pymongo-%{version}.tar.gz
21-
# This patch removes the bundled ssl.match_hostname library as it was vulnerable to CVE-2013-7440
22-
# and CVE-2013-2099, and wasn't needed anyway since Fedora >= 22 has the needed module in the Python
23-
# standard library. It also adjusts imports so that they exclusively use the code from Python.
24-
Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
10+
Summary: Python driver for MongoDB
11+
URL: https://pymongo.readthedocs.io/en/stable/
12+
Source0: https://github.com/mongodb/mongo-python-driver/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2513
BuildRequires: gcc
14+
BuildRequires: make
2615
%if 0%{!?bootstrap:1}
2716
BuildRequires: python3-sphinx
2817
%endif
2918
BuildRequires: python3-devel
3019
BuildRequires: python3-setuptools
31-
BuildRequires: python3-xml
3220

3321
%description
3422
The Python driver for MongoDB.
@@ -69,20 +57,14 @@ GridFS is a storage specification for large objects in MongoDB. This package
6957
contains the python3 version of this module.
7058

7159
%prep
72-
%setup -q -n mongo-python-driver-%{version}
73-
%patch 01 -p1 -b .ssl
74-
75-
# Remove the bundled ssl.match_hostname library as it was vulnerable to CVE-2013-7440
76-
# and CVE-2013-2099, and isn't needed anyway since Fedora >= 22 has the needed module in the Python
77-
# standard library.
78-
rm pymongo/ssl_match_hostname.py
60+
%autosetup -n mongo-python-driver-%{version}
7961

8062
%build
8163
%py3_build
8264

8365
%if 0%{!?bootstrap:1}
8466
pushd doc
85-
make %{?_smp_mflags} html
67+
%make_build html
8668
popd
8769
%endif
8870

@@ -93,34 +75,73 @@ chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so
9375
chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so
9476

9577
%files doc
96-
%license LICENSE THIRD-PARTY-NOTICES
78+
%license LICENSE
9779
%if 0%{!?bootstrap:1}
9880
%doc doc/_build/html/*
9981
%endif
10082

10183
%files -n python3-bson
102-
%license LICENSE THIRD-PARTY-NOTICES
84+
%license LICENSE
10385
%doc README.rst
10486
%{python3_sitearch}/bson
10587

10688
%files -n python3-pymongo
107-
%license LICENSE THIRD-PARTY-NOTICES
89+
%license LICENSE
10890
%doc README.rst
10991
%{python3_sitearch}/pymongo
11092
%{python3_sitearch}/pymongo-%{version}-*.egg-info
11193

11294
%files -n python3-pymongo-gridfs
113-
%license LICENSE THIRD-PARTY-NOTICES
95+
%license LICENSE
11496
%doc README.rst
11597
%{python3_sitearch}/gridfs
11698

11799
%changelog
118-
* Tue Sep 03 2024 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.10.1-6
119-
- Release bump to fix package information.
100+
* Mon Dec 23 2024 Akhila Guruju <v-guakhila@microsoft.com> - 4.2.0-9
101+
- Initial Azure Linux import from Fedora 41 (license: MIT).
120102
- License verified.
121103

122-
* Mon Oct 19 2020 Steve Laughman <steve.laughman@microsoft.com> - 3.10.1-5
123-
- Initial CBL-Mariner import from Fedora 33 (license: MIT)
104+
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-8
105+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
106+
107+
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 4.2.0-7
108+
- Rebuilt for Python 3.13
109+
110+
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-6
111+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
112+
113+
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-5
114+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
115+
116+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-4
117+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
118+
119+
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.2.0-3
120+
- Rebuilt for Python 3.12
121+
122+
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
123+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
124+
125+
* Sat Aug 27 2022 Orion Poplawski <orion@nwra.com> - 4.2.0-1
126+
- Update to 4.2.0
127+
128+
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-10
129+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
130+
131+
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.10.1-9
132+
- Rebuilt for Python 3.11
133+
134+
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-8
135+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
136+
137+
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-7
138+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
139+
140+
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.10.1-6
141+
- Rebuilt for Python 3.10
142+
143+
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-5
144+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
124145

125146
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-4
126147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24153,8 +24153,8 @@
2415324153
"type": "other",
2415424154
"other": {
2415524155
"name": "python-pymongo",
24156-
"version": "3.10.1",
24157-
"downloadUrl": "https://github.com/mongodb/mongo-python-driver/archive/3.10.1/pymongo-3.10.1.tar.gz"
24156+
"version": "4.2.0",
24157+
"downloadUrl": "https://github.com/mongodb/mongo-python-driver/archive/refs/tags/4.2.0.tar.gz"
2415824158
}
2415924159
}
2416024160
},

0 commit comments

Comments
 (0)