!7 Remove subpackage python2-bson, python2-pymongo, python2-pymongo-gridfs
From: @lei_ju Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
ad29e9e359
@ -1,14 +1,13 @@
|
|||||||
Name: python-pymongo
|
Name: python-pymongo
|
||||||
Version: 3.9.0
|
Version: 3.9.0
|
||||||
Release: 3
|
Release: 4
|
||||||
License: Apache License 2.0
|
License: Apache License 2.0
|
||||||
Summary: PyMongo - the Python driver for MongoDB
|
Summary: PyMongo - the Python driver for MongoDB
|
||||||
URL: https://github.com/mongodb/mongo-python-driver
|
URL: https://github.com/mongodb/mongo-python-driver
|
||||||
Source0: https://github.com/mongodb/mongo-python-driver/archive/%{version}.tar.gz
|
Source0: https://github.com/mongodb/mongo-python-driver/archive/%{version}.tar.gz
|
||||||
Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
|
Patch01: 0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch
|
||||||
|
|
||||||
BuildRequires: python2-devel python3-devel
|
BuildRequires: python3-devel python3-setuptools
|
||||||
BuildRequires: python2-setuptools python3-setuptools
|
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
|
|
||||||
%global _description \
|
%global _description \
|
||||||
@ -18,14 +17,6 @@ PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, 3.6, 4.0 and 4.2.
|
|||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python2-bson
|
|
||||||
Summary: Python bson library
|
|
||||||
%{?python_provide:%python_provide python2-bson}
|
|
||||||
|
|
||||||
%description -n python2-bson %{_description}
|
|
||||||
This package is an implementation of the BSON format for Python 2 version.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-bson
|
%package -n python3-bson
|
||||||
Summary: Python bson library
|
Summary: Python bson library
|
||||||
%{?python_provide:%python_provide python3-bson}
|
%{?python_provide:%python_provide python3-bson}
|
||||||
@ -33,17 +24,6 @@ Summary: Python bson library
|
|||||||
%description -n python3-bson %{_description}
|
%description -n python3-bson %{_description}
|
||||||
This package is an implementation of the BSON format for Python 3 version.
|
This package is an implementation of the BSON format for Python 3 version.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-pymongo
|
|
||||||
Summary: Python driver for MongoDB
|
|
||||||
Requires: python2-bson%{?_isa} = %{version}-%{release}
|
|
||||||
Provides: pymongo = %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-pymongo}
|
|
||||||
|
|
||||||
%description -n python2-pymongo %{_description}
|
|
||||||
This package is a native Python 2 version driver for MongoDB.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-pymongo
|
%package -n python3-pymongo
|
||||||
Summary: Python driver for MongoDB
|
Summary: Python driver for MongoDB
|
||||||
Requires: python3-bson%{?_isa} = %{version}-%{release}
|
Requires: python3-bson%{?_isa} = %{version}-%{release}
|
||||||
@ -52,18 +32,6 @@ Requires: python3-bson%{?_isa} = %{version}-%{release}
|
|||||||
%description -n python3-pymongo %{_description}
|
%description -n python3-pymongo %{_description}
|
||||||
This package is a native Python 3 version driver for MongoDB.
|
This package is a native Python 3 version driver for MongoDB.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-pymongo-gridfs
|
|
||||||
Summary: Python GridFS driver for MongoDB
|
|
||||||
Requires: python2-pymongo%{?_isa} = %{version}-%{release}
|
|
||||||
Provides: pymongo-gridfs = %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-pymongo-gridfs}
|
|
||||||
|
|
||||||
%description -n python2-pymongo-gridfs %{_description}
|
|
||||||
This package is a gridfs implementation on top of pymongo.
|
|
||||||
This package for Python 2 version.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-pymongo-gridfs
|
%package -n python3-pymongo-gridfs
|
||||||
Summary: Python GridFS driver for MongoDB
|
Summary: Python GridFS driver for MongoDB
|
||||||
Requires: python3-pymongo%{?_isa} = %{version}-%{release}
|
Requires: python3-pymongo%{?_isa} = %{version}-%{release}
|
||||||
@ -85,81 +53,46 @@ Summary: Development documents for python-pymongo
|
|||||||
%autosetup -n mongo-python-driver-%{version} -p1
|
%autosetup -n mongo-python-driver-%{version} -p1
|
||||||
rm pymongo/ssl_match_hostname.py
|
rm pymongo/ssl_match_hostname.py
|
||||||
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
pushd doc
|
pushd doc
|
||||||
make %{?_smp_mflags} html
|
make %{?_smp_mflags} html
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
cp -arf doc/_build/html/* %{buildroot}/%{_pkgdocdir}
|
cp -arf doc/_build/html/* %{buildroot}/%{_pkgdocdir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python2 setup.py test
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
python3 setup.py test
|
python3 setup.py test
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-bson
|
|
||||||
%license LICENSE
|
|
||||||
%doc README.rst
|
|
||||||
%{python2_sitearch}/bson
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-bson
|
%files -n python3-bson
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitearch}/bson
|
%{python3_sitearch}/bson
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-pymongo
|
|
||||||
%license LICENSE
|
|
||||||
%doc README.rst
|
|
||||||
%{python2_sitearch}/pymongo
|
|
||||||
%{python2_sitearch}/pymongo-%{version}-*.egg-info
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-pymongo
|
%files -n python3-pymongo
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitearch}/pymongo
|
%{python3_sitearch}/pymongo
|
||||||
%{python3_sitearch}/pymongo-%{version}-*.egg-info
|
%{python3_sitearch}/pymongo-%{version}-*.egg-info
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-pymongo-gridfs
|
|
||||||
%{python2_sitearch}/gridfs
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-pymongo-gridfs
|
%files -n python3-pymongo-gridfs
|
||||||
%{python3_sitearch}/gridfs
|
%{python3_sitearch}/gridfs
|
||||||
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%{_pkgdocdir}
|
%{_pkgdocdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 3.9.0-4
|
||||||
|
- Remove subpackage python2-bson, python2-pymongo, python2-pymongo-gridfs
|
||||||
|
|
||||||
* Thu 10 2020 liuweibo <liuweibo10@huawei.com> - 3.9.0-3
|
* Thu 10 2020 liuweibo <liuweibo10@huawei.com> - 3.9.0-3
|
||||||
- Fix Source0
|
- Fix Source0
|
||||||
|
|
||||||
|
|
||||||
* Fri Feb 21 2020 shanshishi <shanshishi@huawei.com> - 3.9.0-2
|
* Fri Feb 21 2020 shanshishi <shanshishi@huawei.com> - 3.9.0-2
|
||||||
- Revise build requires of python2-sphinx to python3-sphinx
|
- Revise build requires of python2-sphinx to python3-sphinx
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user