%global pypi_name couchbase
Name: python-%{pypi_name}
Version: 2.5.4
Release: 1%{?dist}
Summary: Python client for Couchbase server
License: ASL 2.0
URL: https://developer.couchbase.com/server/other-products/release-notes-archives/python-sdk
Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch5: %{name}-0005-do-not-install-tests-as-packages.patch
Patch6: %{name}-0006-remove-typing-package-from-setup.py.patch
BuildRequires: gcc
BuildRequires: libcouchbase-devel
BuildRequires: python2-devel
BuildRequires: python2-testresources >= 0.2.7
BuildRequires: python2-pbr
BuildRequires: python2-twisted
BuildRequires: python2-gevent
BuildRequires: python2-jsonschema
BuildRequires: python2-configparser
BuildRequires: python2-setuptools
BuildRequires: python2-pip
BuildRequires: python3-devel
BuildRequires: python3-testresources >= 0.2.7
BuildRequires: python3-pbr
BuildRequires: python3-twisted
BuildRequires: python3-gevent
BuildRequires: python3-jsonschema
BuildRequires: python3-configparser
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-numpydoc
BuildRequires: python3-pip
%description
The Couchbase Python SDK allows Python applications to access a Couchbase
cluster. The Python SDK offers a traditional synchronous API as well as
integration with twisted, gevent, and asyncio.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
The Couchbase Python SDK allows Python applications to access a Couchbase
cluster. The Python SDK offers a traditional synchronous API as well as
integration with twisted, gevent, and asyncio.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
The Couchbase Python SDK allows Python applications to access a Couchbase
cluster. The Python SDK offers a traditional synchronous API as well as
integration with twisted, gevent, and asyncio.
%package -n python-%{pypi_name}-doc
Summary: Documentation for Couchbase python client
%description -n python-%{pypi_name}-doc
Documentation for Couchbase python client.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%py3_build
# generate html docs
sphinx-build-3 docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%py2_install
%py3_install
rm -rf %{python2_sitearch}/%{pypi_name}/tests
rm -rf %{python3_sitearch}/%{pypi_name}/tests
rm -rf %{python3_sitearch}/acouchbase/tests
%files -n python2-%{pypi_name}
%license LICENSE
%doc README.rst
%{python2_sitearch}/gcouchbase
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/acouchbase
%{python2_sitearch}/txcouchbase
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/gcouchbase
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/acouchbase
%{python3_sitearch}/txcouchbase
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%files -n python-%{pypi_name}-doc
%doc README.rst html examples
%changelog
* Mon Feb 11 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.5.4-1
- Update to 2.5.4
* Wed Jan 09 2019 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.5.3-1
- Update to 2.5.3
* Wed Dec 05 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.5.2-1
- Update to 2.5.2
* Sat Nov 10 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.5.1-2
- Add missing dependency python3-pip
* Thu Nov 08 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.5.1-1
- Update to 2.5.1
* Wed Oct 03 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.5.0-1
- Update to 2.5.0
* Fri Sep 07 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.4.2-1
- Update to 2.4.2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.3.5-3
- Patch for renaming 'async' package to 'asynchronous' for python 3.7
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 2.3.5-2
- Rebuilt for Python 3.7
* Tue May 01 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.3.5-1
- Update to 2.3.5
* Wed Mar 07 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.3.4-2
- Added gcc as build requirement
* Mon Mar 05 2018 Sergey Avseyev <sergey.avseyev@gmail.com> - 2.3.4-1
- Initial package