diff --git a/4.2.0.tar.gz b/4.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e77b175f15de0c959723b032411731f7bb6656d2 Binary files /dev/null and b/4.2.0.tar.gz differ diff --git a/python-pymongo.spec b/python-pymongo.spec new file mode 100644 index 0000000000000000000000000000000000000000..d65536221432fafc526d091f77262f7deb2e1179 --- /dev/null +++ b/python-pymongo.spec @@ -0,0 +1,115 @@ +%define anolis_release 1 + +%global bootstrap 0 + +Name: python-pymongo +Version: 4.2.0 +Release: %{anolis_release}%{?dist} + +# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT +License: ASL 2.0 and MIT +Summary: Python driver for MongoDB +URL: https://pymongo.readthedocs.io/en/stable/ +Source0: https://github.com/mongodb/mongo-python-driver/archive/refs/tags/%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: make +%if 0%{!?bootstrap:1} +BuildRequires: python3-sphinx +%endif +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +The Python driver for MongoDB. + + +%package -n python3-pymongo-doc +BuildArch: noarch +Summary: Documentation for python-pymongo + +%description -n python3-pymongo-doc +Documentation for python-pymongo. + + +%package -n python3-bson +Summary: Python bson library +%{?python_provide:%python_provide python3-bson} + +%description -n python3-bson +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. + + +%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 +The Python driver for MongoDB. This package contains the python3 version of +this module. + + +%package -n python3-pymongo-gridfs +Summary: Python GridFS driver for MongoDB +Requires: python3-pymongo%{?_isa} = %{version}-%{release} +%{?python_provide:%python_provide python3-pymongo-gridfs} + +%description -n python3-pymongo-gridfs +GridFS is a storage specification for large objects in MongoDB. This package +contains the python3 version of this module. + + +%prep +%setup -q -n mongo-python-driver-%{version} + + +%build +%py3_build + +%if 0%{!?bootstrap:1} +pushd doc +%make_build html +popd +%endif + + +%install +%py3_install +# Fix permissions +chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so +chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so + + +%files -n python3-pymongo-doc +%license LICENSE +%if 0%{!?bootstrap:1} +%doc doc/_build/html/* +%endif + + +%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 +%license LICENSE +%doc README.rst +%{python3_sitearch}/gridfs + + +%changelog +* Mon May 15 2023 Funda Wang - 4.2.0-1 +- Import package for anolis 23