diff --git a/pymongo-4.0.tar.gz b/pymongo-4.0.tar.gz deleted file mode 100644 index d873e8509188e5b69bd531855e47e86d92a623be..0000000000000000000000000000000000000000 Binary files a/pymongo-4.0.tar.gz and /dev/null differ diff --git a/pymongo-4.3.3.tar.gz b/pymongo-4.3.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0a15e30014bd44e28a3a71faf0d850c44a2129a1 Binary files /dev/null and b/pymongo-4.3.3.tar.gz differ diff --git a/python-pymongo.spec b/python-pymongo.spec index 63bb038221c514cedff1c13a124e60c9f4c69b76..e30ef20c1be47018bad229c5fe284bd0eeef2492 100644 --- a/python-pymongo.spec +++ b/python-pymongo.spec @@ -1,11 +1,23 @@ -Name: python-pymongo -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/76/53/5699ae682e600fd9816934ccaf3d0898b4782c00a24700c802c637b5373a/pymongo-4.0.tar.gz -# Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch +%global _empty_manifest_terminate_build 0 +Name: python-pymongo +Version: 4.3.3 +Release: 1 +Summary: Python driver for MongoDB +License: Apache License 2.0 +URL: http://github.com/mongodb/mongo-python-driver +Source0: https://files.pythonhosted.org/packages/9a/31/482f7401e7bbbeb66ab6b4ac263e2b50435f4329cce1e72378972d48f6b5/pymongo-4.3.3.tar.gz + +Requires: python3-dnspython +Requires: python3-pymongo-auth-aws +Requires: python3-pymongocrypt +Requires: python3-pymongo-auth-aws +Requires: python3-pykerberos +Requires: python3-pyopenssl +Requires: python3-requests +Requires: python3-service-identity +Requires: python3-certifi +Requires: python3-snappy +Requires: python3-zstandard BuildRequires: python3-devel python3-setuptools BuildRequires: python3-sphinx gcc @@ -25,12 +37,14 @@ Summary: Python bson library This package is an implementation of the BSON format for Python 3 version. %package -n python3-pymongo -Summary: Python driver for MongoDB -Requires: python3-bson%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python3-pymongo} - -%description -n python3-pymongo %{_description} -This package is a native Python 3 version driver for MongoDB. +Summary: Python driver for MongoDB +Provides: python-pymongo +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pymongo %package -n python3-pymongo-gridfs Summary: Python GridFS driver for MongoDB @@ -42,16 +56,14 @@ 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 - +Summary: Development documents and examples for pymongo +Provides: python3-pymongo-doc %description help The PyMongo distribution contains tools for interacting with MongoDB database from Python. %prep -%autosetup -n pymongo-%{version} -p1 -# rm pymongo/ssl_match_hostname.py +%autosetup -n pymongo-4.3.3 %build %py3_build @@ -62,29 +74,41 @@ PYTHONPATH=${PYTHONPATH}:/usr/local/lib64/python3.8/site-packages:/usr/local/lib %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} -cp -arf doc/_build/%{version}/* %{buildroot}/%{_pkgdocdir} - -%check -python3 setup.py test - -%files -n python3-bson -%license LICENSE -%doc README.rst -%{python3_sitearch}/bson - -%files -n python3-pymongo -%license LICENSE -%doc README.rst -%{python3_sitearch}/pymongo -%{python3_sitearch}/pymongo-%{version}-*.egg-info - -%files -n python3-pymongo-gridfs -%{python3_sitearch}/gridfs - -%files help -%{_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} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +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 +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Thu Apr 20 2023 sunchendong - 4.3.3-1 +- Update version to 4.3.3 + * Sun Jul 24 2022 liksh - 4.0-1 - upgrade to 4.0 for openstack yoga