diff --git a/pymongo-4.12.1.tar.gz b/pymongo-4.12.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ba204a3677b725b5215282745684a588dd104c46 Binary files /dev/null and b/pymongo-4.12.1.tar.gz differ diff --git a/pymongo-4.7.3.tar.gz b/pymongo-4.7.3.tar.gz deleted file mode 100644 index ac63d7107cbbb3f4240f24adb5a53f730be0d6db..0000000000000000000000000000000000000000 Binary files a/pymongo-4.7.3.tar.gz and /dev/null differ diff --git a/python-pymongo.spec b/python-pymongo.spec index fae51d3c1e0eb613a9f221946b42dd61a1045a2f..247b0222ef07c1e1a5f5e3267810af2f638349be 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,120 +1,105 @@ -Name: python-pymongo -Version: 4.7.3 -Release: 1 -License: Apache License 2.0 -Summary: PyMongo - the Python driver for MongoDB -URL: https://github.com/mongodb/mongo-python-driver -Source0: %{pypi_source pymongo} - -BuildRequires: python3-devel python3-setuptools -BuildRequires: python3-sphinx gcc python3-pip python3-dns -BuildRequires: python3-pytest - -%global _description \ -The PyMongo distribution contains tools for interacting with \ -MongoDB database from Python.\ -PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, 3.6, 4.0 and 4.2. - -%description %{_description} - -%package -n python3-bson -Summary: Python bson library -%{?python_provide:%python_provide python3-bson} - -%description -n python3-bson %{_description} -This package is an implementation of the BSON format for Python 3 version. +%global _empty_manifest_terminate_build 0 +Name: python-pymongo +Version: 4.12.1 +Release: 1 +Summary: Python driver for MongoDB +License: Apache License +URL: https://www.mongodb.org +Source0: https://files.pythonhosted.org/packages/85/27/3634b2e8d88ad210ee6edac69259c698aefed4a79f0f7356cd625d5c423c/pymongo-4.12.1.tar.gz + +Requires: (python3-dnspython<3.0.0 with python3-dnspython>=1.16.0) +Requires: (python3-pymongo-auth-aws<2.0.0 with python3-pymongo-auth-aws>=1.1.0) +Requires: (python3-furo==2024.8.6) +Requires: (python3-readthedocs-sphinx-search~=0.3) +Requires: (python3-sphinx-autobuild>=2020.9.1) +Requires: (python3-sphinx-rtd-theme<4 with python3-sphinx-rtd-theme>=2) +Requires: (python3-sphinx<9 with python3-sphinx>=5.3) +Requires: (python3-sphinxcontrib-shellcheck<2 with python3-sphinxcontrib-shellcheck>=1) +Requires: (python3-certifi) +Requires: (python3-pymongo-auth-aws<2.0.0 with python3-pymongo-auth-aws>=1.1.0) +Requires: (python3-pymongocrypt<2.0.0 with python3-pymongocrypt>=1.13.0) +Requires: (python3-pykerberos) +Requires: (python3-winkerberos>=0.5.0) +Requires: (python3-certifi) +Requires: (python3-cryptography>=2.5) +Requires: (python3-pyopenssl>=17.2.0) +Requires: (python3-requests<3.0.0) +Requires: (python3-service-identity>=18.1.0) +Requires: (python3-python-snappy) +Requires: (python3-pytest-asyncio>=0.24.0) +Requires: (python3-pytest>=8.2) +Requires: (python3-zstandard) + +%description +## About + +The PyMongo distribution contains tools for interacting with MongoDB +database from Python. The `bson` package is an implementation of the +[BSON format](http://bsonspec.org) for Python. The `pymongo` package is +a native Python driver for MongoDB. The `gridfs` package is a +[gridfs](https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.md/) +implementation on top of `pymongo`. + +PyMongo supports MongoDB 4.0, 4.2, 4.4, 5.0, 6.0, 7.0, and 8.0. %package -n python3-pymongo -Summary: Python driver for MongoDB -Requires: python3-bson = %{version}-%{release} -%{?python_provide:%python_provide python3-pymongo} - -%description -n python3-pymongo %{_description} -This package is a native Python 3 version driver for MongoDB. - -%package -n python3-pymongo-gridfs -Summary: Python GridFS driver for MongoDB -Requires: python3-pymongo = %{version}-%{release} -%{?python_provide:%python_provide python3-pymongo-gridfs} - -%description -n python3-pymongo-gridfs %{_description} -This package is a gridfs implementation on top of pymongo. -This package for Python 3 version. - -%package help -BuildArch: noarch -Summary: Development documents for python-pymongo - -%description help -The PyMongo distribution contains tools for interacting with MongoDB database from Python. - +Summary: Python driver for MongoDB +Provides: python-pymongo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pymongo +## About + +The PyMongo distribution contains tools for interacting with MongoDB +database from Python. The `bson` package is an implementation of the +[BSON format](http://bsonspec.org) for Python. The `pymongo` package is +a native Python driver for MongoDB. The `gridfs` package is a +[gridfs](https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.md/) +implementation on top of `pymongo`. + +PyMongo supports MongoDB 4.0, 4.2, 4.4, 5.0, 6.0, 7.0, and 8.0. %prep -%autosetup -n pymongo-%{version} -p1 +%autosetup -n pymongo-4.12.1 %build -%py3_build +%pyproject_build %install -%py3_install - -chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so -chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so - -%check -sed -i '$!N;/test_detected_environment_warning/!P;D' test/test_client.py -sed -i '/with self._caplog.at_level/,+18 d' test/test_client.py -sed -i '/test_metadata/,+49 d' test/test_client.py -python3 -m unittest discover -v - -%files -n python3-bson -%license LICENSE -%doc README.md -%{python3_sitearch}/bson - -%files -n python3-pymongo -%license LICENSE -%doc README.md -%{python3_sitearch}/pymongo -%{python3_sitearch}/pymongo-%{version}-*.egg-info - -%files -n python3-pymongo-gridfs -%{python3_sitearch}/gridfs - -%files help -%{_docdir}/python3-pymongo +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pymongo -f filelist.lst +%{python3_sitearch}/* +%{_docdir}/* %changelog -* Wed Apr 23 2025 Ge Wang - 4.7.3-1 -- Update to 4.7.3 - -* Wed Jun 05 2024 yaoxin - 4.6.3-1 -- Update to 4.6.3 -- Fixed a potential memory access violation when decoding invalid bson. - -* Sun Apr 07 2024 liweigang - 4.3.3-2 -- Fix CVE-2024-21506 - -* Thu May 18 2023 chenchen - 4.3.3-1 -- upgrade to 4.3.3 - -* 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 - -* Mon May 31 2021 huanghaitao - 3.9.0-5 -- Completing build dependencies - -* Wed Oct 21 2020 chengzihan - 3.9.0-4 -- Remove subpackage python2-bson, python2-pymongo, python2-pymongo-gridfs - -* Wed Oct 21 2020 liuweibo - 3.9.0-3 -- Fix Source0 - -* Fri Feb 21 2020 shanshishi - 3.9.0-2 -- Revise build requires of python2-sphinx to python3-sphinx - -* Sat Nov 2 2019 shanshishi - 3.9.0-1 -- Init package +* Sun May 11 2025 Python_Bot - 4.12.1-1 +- Package Spec generated