[packages/python-pymongo] - updated to 3.13.0
qboosh
qboosh at pld-linux.org
Sat Dec 9 22:16:21 CET 2023
commit 255c6c6ebf7bddfb540294345e38a23e083621ec
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 9 22:09:46 2023 +0100
- updated to 3.13.0
python-pymongo.spec | 103 ++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 76 insertions(+), 27 deletions(-)
---
diff --git a/python-pymongo.spec b/python-pymongo.spec
index d130639..4010b64 100644
--- a/python-pymongo.spec
+++ b/python-pymongo.spec
@@ -1,34 +1,39 @@
#
# Conditional build:
-%bcond_without python2 # Python 2.x module
-%bcond_without python3 # Python 3.x module
-%bcond_with tests # run tests (seem broken)
+%bcond_without python2 # Python 2.x module
+%bcond_without python3 # Python 3.x module
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
%define module pymongo
Summary: Python driver for MongoDB
Summary(pl.UTF-8): Sterownik Pythona do MongoDB
Name: python-%{module}
-Version: 3.7.1
-Release: 7
+# keep 3.x here for python2 support
+Version: 3.13.0
+Release: 1
License: Apache v2.0
Group: Development/Languages/Python
-Source0: https://pypi.python.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz
-# Source0-md5: 7449c81a6c32c3c8cb9bebebc848fded
+Source0: https://files.pythonhosted.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz
+# Source0-md5: 3965b85631b7d482c78a38ae028f4f0a
URL: https://api.mongodb.com/python/current/
%if %{with python2}
-BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-devel >= 1:2.7
BuildRequires: python-modules
BuildRequires: python-setuptools
%endif
%if %{with python3}
-BuildRequires: python3-2to3 >= 1:3.2
-BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-devel >= 1:3.5
BuildRequires: python3-setuptools
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-2
+%endif
Requires: python-bson = %{version}-%{release}
-Requires: python-modules
+Requires: python-modules >= 1:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -41,6 +46,7 @@ MongoDB z poziomu Pythona.
%package -n python-bson
Summary: Python bson library
+Summary(pl.UTF-8): Biblioteka bson dla Pythona
Group: Development/Languages/Python
Conflicts: python-pymongo < 3.7.1
@@ -50,24 +56,43 @@ designed to be lightweight, traversable, and efficient. BSON, like
JSON, supports the embedding of objects and arrays within other
objects and arrays.
+%description -n python-bson -l pl.UTF-8
+BSON to binarna serializacja dokumentów w stylu JSON. BSON jest
+zaprojektowany jako lekki, dający się przechodzić i wydajny. BSON,
+podobnie jak JSON, obsługuje osadzanie obiektów i tablic wewnątrz
+innych obiektów i tablic.
+
%package -n python-gridfs
Summary: Python GridFS driver for MongoDB
+Summary(pl.UTF-8): Pythonowy sterownik GridFS dla MongoDB
+Group: Development/Languages/Python
Requires: python-pymongo = %{version}-%{release}
-Conflicts: python-pymongo < 3.7.1
%description -n python-gridfs
GridFS is a storage specification for large objects in MongoDB.
+%description -n python-gridfs -l pl.UTF-8
+GridFS to specyfikacja przechowywania danych dużych obiektów w
+MongoDB.
+
%package -n python3-%{module}
Summary: Python driver for MongoDB
Summary(pl.UTF-8): Sterownik Pythona do MongoDB
Group: Development/Languages/Python
Requires: python3-bson = %{version}-%{release}
-Requires: python3-modules
-Conflicts: python3-pymongo < 3.7.1
+Requires: python3-modules >= 1:3.5
+
+%description -n python3-%{module}
+The PyMongo distribution contains tools for interacting with MongoDB
+database from Python.
+
+%description -n python3-%{module} -l pl.UTF-8
+Dystrybucja PyMongo zawiera narzędzia do współpracy z bazą danych
+MongoDB z poziomu Pythona.
%package -n python3-bson
Summary: Python bson library
+Summary(pl.UTF-8): Biblioteka bson dla Pythona
Group: Development/Languages/Python
Conflicts: python3-pymongo < 3.7.1
@@ -75,24 +100,38 @@ Conflicts: python3-pymongo < 3.7.1
BSON is a binary-encoded serialization of JSON-like documents. BSON is
designed to be lightweight, traversable, and efficient. BSON, like
JSON, supports the embedding of objects and arrays within other
-objects and arrays. This package contains the python3 version of this
-module.
+objects and arrays.
+
+%description -n python3-bson -l pl.UTF-8
+BSON to binarna serializacja dokumentów w stylu JSON. BSON jest
+zaprojektowany jako lekki, dający się przechodzić i wydajny. BSON,
+podobnie jak JSON, obsługuje osadzanie obiektów i tablic wewnątrz
+innych obiektów i tablic.
%package -n python3-gridfs
Summary: Python GridFS driver for MongoDB
+Summary(pl.UTF-8): Pythonowy sterownik GridFS dla MongoDB
+Group: Development/Languages/Python
Requires: python-pymongo = %{version}-%{release}
%description -n python3-gridfs
-GridFS is a storage specification for large objects in MongoDB. This
-package contains the python3 version of this module.
+GridFS is a storage specification for large objects in MongoDB.
-%description -n python3-%{module}
-The PyMongo distribution contains tools for interacting with MongoDB
-database from Python.
+%description -n python3-gridfs -l pl.UTF-8
+GridFS to specyfikacja przechowywania danych dużych obiektów w
+MongoDB.
-%description -n python3-%{module} -l pl.UTF-8
-Dystrybucja PyMongo zawiera narzędzia do współpracy z bazą danych
-MongoDB z poziomu Pythona.
+%package apidocs
+Summary: API documentation for Python MongoDB modules
+Summary(pl.UTF-8): Dokumentacja API modułów Pythona MongoDB
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for Python MongoDB modules.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułów Pythona MongoDB.
%prep
%setup -q -n %{module}-%{version}
@@ -106,6 +145,10 @@ MongoDB z poziomu Pythona.
%py3_build %{?with_tests:test}
%endif
+%if %{with doc}
+sphinx-build-2 -b html doc doc/_build/html
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -125,7 +168,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc README.rst doc/api doc/examples doc/*.rst
+%doc README.rst THIRD-PARTY-NOTICES
%dir %{py_sitedir}/pymongo
%{py_sitedir}/pymongo/*.py[co]
%attr(755,root,root) %{py_sitedir}/pymongo/_cmessage.so
@@ -146,7 +189,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc README.rst doc/api doc/examples doc/*.rst
+%doc README.rst THIRD-PARTY-NOTICES
%dir %{py3_sitedir}/pymongo
%{py3_sitedir}/pymongo/*.py
%{py3_sitedir}/pymongo/__pycache__
@@ -166,3 +209,9 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitedir}/gridfs/*.py
%{py3_sitedir}/gridfs/__pycache__
%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/_build/html/{_images,_static,api,developer,examples,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pymongo.git/commitdiff/255c6c6ebf7bddfb540294345e38a23e083621ec
More information about the pld-cvs-commit
mailing list