|
|
@ -1,14 +1,17 @@
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
%bcond_with python36_module
|
|
|
|
|
|
|
|
|
|
|
|
# Only build on architectures supported by mongodb in RHEL8
|
|
|
|
# Only build on architectures supported by mongodb in RHEL8
|
|
|
|
%global mongodb_arches x86_64 ppc64le aarch64 s390x %{arm}
|
|
|
|
%global mongodb_arches x86_64 ppc64le aarch64 s390x
|
|
|
|
|
|
|
|
|
|
|
|
# Fix private-shared-object-provides error
|
|
|
|
# Fix private-shared-object-provides error
|
|
|
|
%{?filter_setup:
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}.*\.so$
|
|
|
|
%filter_provides_in %{python2_sitearch}.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
%filter_setup
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Conditionalize tests
|
|
|
|
# Conditionalize tests
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
# Disable python2 build by default
|
|
|
|
# Disable python2 build by default
|
|
|
@ -18,8 +21,8 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-pymongo
|
|
|
|
Name: python-pymongo
|
|
|
|
Version: 3.6.1
|
|
|
|
Version: 3.7.0
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT
|
|
|
|
# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT
|
|
|
|
License: ASL 2.0 and MIT
|
|
|
|
License: ASL 2.0 and MIT
|
|
|
@ -51,15 +54,22 @@ BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%if %{with python36_module}
|
|
|
|
|
|
|
|
BuildRequires: python36-devel
|
|
|
|
|
|
|
|
BuildRequires: python36-rpm-macros
|
|
|
|
|
|
|
|
%else
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
The Python driver for MongoDB.
|
|
|
|
The Python driver for MongoDB.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Summary: Documentation for python-pymongo
|
|
|
|
Summary: Documentation for python-pymongo
|
|
|
@ -67,6 +77,7 @@ Summary: Documentation for python-pymongo
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
Documentation for python-pymongo.
|
|
|
|
Documentation for python-pymongo.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%if %{with python2}
|
|
|
|
%package -n python2-bson
|
|
|
|
%package -n python2-bson
|
|
|
@ -81,6 +92,7 @@ embedding of objects and arrays within other objects and arrays.
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%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}
|
|
|
@ -91,6 +103,7 @@ BSON is a binary-encoded serialization of JSON-like documents. BSON is designed
|
|
|
|
to be lightweight, traversable, and efficient. BSON, like JSON, supports the
|
|
|
|
to be lightweight, traversable, and efficient. BSON, like JSON, supports the
|
|
|
|
embedding of objects and arrays within other objects and arrays. This package
|
|
|
|
embedding of objects and arrays within other objects and arrays. This package
|
|
|
|
contains the python3 version of this module.
|
|
|
|
contains the python3 version of this module.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%if %{with python2}
|
|
|
@ -98,7 +111,6 @@ contains the python3 version of this module.
|
|
|
|
Summary: Python driver for MongoDB
|
|
|
|
Summary: Python driver for MongoDB
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python2-bson%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: python2-bson%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: pymongo = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: pymongo <= 2.1.1-4
|
|
|
|
Obsoletes: pymongo <= 2.1.1-4
|
|
|
|
%{?python_provide:%python_provide python2-pymongo}
|
|
|
|
%{?python_provide:%python_provide python2-pymongo}
|
|
|
|
|
|
|
|
|
|
|
@ -109,6 +121,7 @@ this module.
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%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}
|
|
|
@ -118,12 +131,12 @@ Requires: python3-bson%{?_isa} = %{version}-%{release}
|
|
|
|
%description -n python3-pymongo
|
|
|
|
%description -n python3-pymongo
|
|
|
|
The Python driver for MongoDB. This package contains the python3 version of
|
|
|
|
The Python driver for MongoDB. This package contains the python3 version of
|
|
|
|
this module.
|
|
|
|
this module.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%if %{with python2}
|
|
|
|
%package -n python2-pymongo-gridfs
|
|
|
|
%package -n python2-pymongo-gridfs
|
|
|
|
Summary: Python GridFS driver for MongoDB
|
|
|
|
Summary: Python GridFS driver for MongoDB
|
|
|
|
Requires: python2-pymongo%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: python2-pymongo%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: pymongo-gridfs = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: pymongo-gridfs <= 2.1.1-4
|
|
|
|
Obsoletes: pymongo-gridfs <= 2.1.1-4
|
|
|
|
%{?python_provide:%python_provide python2-pymongo-gridfs}
|
|
|
|
%{?python_provide:%python_provide python2-pymongo-gridfs}
|
|
|
|
|
|
|
|
|
|
|
@ -133,6 +146,7 @@ GridFS is a storage specification for large objects in MongoDB.
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%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}
|
|
|
@ -142,6 +156,7 @@ Requires: python3-pymongo%{?_isa} = %{version}-%{release}
|
|
|
|
%description -n python3-pymongo-gridfs
|
|
|
|
%description -n python3-pymongo-gridfs
|
|
|
|
GridFS is a storage specification for large objects in MongoDB. This package
|
|
|
|
GridFS is a storage specification for large objects in MongoDB. This package
|
|
|
|
contains the python3 version of this module.
|
|
|
|
contains the python3 version of this module.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
@ -158,11 +173,13 @@ rm pymongo/ssl_match_hostname.py
|
|
|
|
%py2_build
|
|
|
|
%py2_build
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
pushd doc
|
|
|
|
pushd doc
|
|
|
|
SPHINXBUILD=sphinx-build-3 make %{?_smp_mflags} html
|
|
|
|
SPHINXBUILD=sphinx-build-3 make %{?_smp_mflags} html
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
@ -173,10 +190,12 @@ chmod 755 %{buildroot}%{python2_sitearch}/bson/*.so
|
|
|
|
chmod 755 %{buildroot}%{python2_sitearch}/pymongo/*.so
|
|
|
|
chmod 755 %{buildroot}%{python2_sitearch}/pymongo/*.so
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
# Fix permissions
|
|
|
|
# Fix permissions
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%if %{with tests}
|
|
|
@ -202,16 +221,20 @@ done
|
|
|
|
%{__python2} setup.py test || (pkill mongod && exit 1)
|
|
|
|
%{__python2} setup.py test || (pkill mongod && exit 1)
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%{__python3} setup.py test || (pkill mongod && exit 1)
|
|
|
|
%{__python3} setup.py test || (pkill mongod && exit 1)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
pkill mongod
|
|
|
|
pkill mongod
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif # with tests
|
|
|
|
%endif # with tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc doc/_build/html/*
|
|
|
|
%doc doc/_build/html/*
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-bson
|
|
|
|
%files -n python2-bson
|
|
|
@ -221,10 +244,12 @@ pkill mongod
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-bson
|
|
|
|
%files -n python3-bson
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitearch}/bson
|
|
|
|
%{python3_sitearch}/bson
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-pymongo
|
|
|
|
%files -n python2-pymongo
|
|
|
@ -235,11 +260,13 @@ pkill mongod
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%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
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-pymongo-gridfs
|
|
|
|
%files -n python2-pymongo-gridfs
|
|
|
@ -249,15 +276,44 @@ pkill mongod
|
|
|
|
%endif # with python2
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-pymongo-gridfs
|
|
|
|
%files -n python3-pymongo-gridfs
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitearch}/gridfs
|
|
|
|
%{python3_sitearch}/gridfs
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Jun 18 2019 Johnny Hughes <johnny@centos.org> - 3.6.1-5
|
|
|
|
* Wed Apr 03 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.7.0-1
|
|
|
|
- build on armhfp
|
|
|
|
- Rebuilt for MSVSphere 8.10 beta
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Oct 09 2020 Lukas Javorsky <ljavorsk@redhat.com> - 3.7.0-1
|
|
|
|
|
|
|
|
- Rebase to 3.7.0
|
|
|
|
|
|
|
|
- Includes new SCRAM-SHA-256 authentication
|
|
|
|
|
|
|
|
Resolves: rhbz#1879852
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2019 Tomas Orsava <torsava@redhat.com> - 3.6.1-11
|
|
|
|
|
|
|
|
- Fix unversioned python macro that's causing a FTBFS
|
|
|
|
|
|
|
|
- Related: rhbz#1678920
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 3.6.1-10
|
|
|
|
|
|
|
|
- Bumping due to problems with modular RPM upgrade path
|
|
|
|
|
|
|
|
- Resolves: rhbz#1695587
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 28 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-9
|
|
|
|
|
|
|
|
- Disable the test suite as mongodb is not available anymore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 09 2018 Lumír Balhar <lbalhar@redhat.com> - 3.6.1-8
|
|
|
|
|
|
|
|
- Remove unversioned provides
|
|
|
|
|
|
|
|
- Resolves: rhbz#1628242
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 31 2018 Lumír Balhar <lbalhar@redhat.com> - 3.6.1-7
|
|
|
|
|
|
|
|
- Make possible to disable python3 subpackage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 18 2018 Tomas Orsava <torsava@redhat.com> - 3.6.1-6
|
|
|
|
|
|
|
|
- BuildRequire the python36-devel package when building for the python36 module
|
|
|
|
|
|
|
|
- BuildRequire also python36-rpm-macros as part of the python36 module build
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 26 2018 Tomas Orsava <torsava@redhat.com> - 3.6.1-5
|
|
|
|
* Tue Jun 26 2018 Tomas Orsava <torsava@redhat.com> - 3.6.1-5
|
|
|
|
- Fix checking of running mongod - test only open ports (not I-Node number)
|
|
|
|
- Fix checking of running mongod - test only open ports (not I-Node number)
|
|
|
|