Blame python-designateclient.spec

909423d
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
909423d
%global sources_gpg_sign 0x2426b928085a020d8a90d0d879ab7008d0896c8a
6ce4532
f7411d7
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
6ce4532
%global with_doc 1
7b1a76b
7b1a76b
%global common_desc \
7b1a76b
Client library and command line utility for interacting with Openstack Designate API
f7411d7
e917630
%global sname designateclient
e917630
e917630
Name:       python-%{sname}
909423d
Version:    4.1.0
73a1e90
Release:    2%{?dist}
f7411d7
Summary:    Python API and CLI for OpenStack Designate
f7411d7
f7411d7
License:    ASL 2.0
e917630
URL:        https://launchpad.net/python-%{sname}/
7b1a76b
Source0:    https://tarballs.openstack.org/%{name}/%{name}-%{upstream_version}.tar.gz
909423d
# Required for tarball sources verification
909423d
%if 0%{?sources_gpg} == 1
909423d
Source101:        https://tarballs.openstack.org/%{name}/%{name}-%{upstream_version}.tar.gz.asc
909423d
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
909423d
%endif
f7411d7
f7411d7
BuildArch:  noarch
f7411d7
909423d
# Required for tarball sources verification
909423d
%if 0%{?sources_gpg} == 1
909423d
BuildRequires:  /usr/bin/gpgv2
909423d
%endif
909423d
7b1a76b
BuildRequires: git
7b1a76b
e917630
%description
7b1a76b
%{common_desc}
e917630
d62b619
%package -n python3-%{sname}
e917630
Summary:    Python API and CLI for OpenStack Designate
d62b619
%{?python_provide:%python_provide python3-%{sname}}
d62b619
d62b619
BuildRequires: python3-devel
d62b619
BuildRequires: python3-setuptools
d62b619
BuildRequires: python3-pbr
d62b619
d62b619
Requires: python3-pbr
d62b619
Requires: python3-keystoneauth1 >= 3.4.0
d62b619
Requires: python3-requests >= 2.14.2
d62b619
Requires: python3-six >= 1.10.0
d62b619
Requires: python3-stevedore
d62b619
Requires: python3-osc-lib >= 1.8.0
d62b619
Requires: python3-debtcollector
d62b619
Requires: python3-oslo-utils >= 3.33.0
d62b619
Requires: python3-oslo-serialization >= 2.18.0
d62b619
Requires: python3-cliff
d62b619
Requires: python3-jsonschema >= 2.6.0
d62b619
d62b619
%description -n python3-%{sname}
f7411d7
%{common_desc}
f7411d7
f7411d7
d62b619
%package -n python3-%{sname}-tests
e917630
Summary:    Python API and CLI for OpenStack Designate (tests)
d62b619
%{?python_provide:%python_provide python3-%{sname}-tests}
d62b619
Requires:	python3-%{sname} = %{version}-%{release}
f7411d7
d62b619
%description -n python3-%{sname}-tests
e917630
%{common_desc}
e917630
e917630
This package contains Designate client tests files.
e917630
6ce4532
%if 0%{?with_doc}
e917630
%package doc
e917630
Summary:          Documentation for OpenStack Designate API Client
e917630
d62b619
BuildRequires:    python3-sphinx
d62b619
BuildRequires:    python3-openstackdocstheme
d62b619
BuildRequires:    python3-keystoneauth1
d62b619
BuildRequires:    python3-osc-lib
d62b619
BuildRequires:    python3-jsonschema
d62b619
BuildRequires:    python3-oslo-serialization
e917630
e917630
%description      doc
e917630
%{common_desc}
e917630
e917630
This package contains auto-generated documentation.
6ce4532
%endif
Victoria Martínez de la Cruz 6969687
Victoria Martínez de la Cruz 6969687
%prep
909423d
# Required for tarball sources verification
909423d
%if 0%{?sources_gpg} == 1
909423d
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
909423d
%endif
7b1a76b
%autosetup -n %{name}-%{upstream_version} -S git
f7411d7
6ce4532
rm -rf *requirements.txt
Victoria Martínez de la Cruz 6969687
Victoria Martínez de la Cruz 6969687
%build
d62b619
%{py3_build}
Victoria Martínez de la Cruz 6969687
6ce4532
%if 0%{?with_doc}
d62b619
PYTHONPATH=. sphinx-build-3 -b html doc/source doc/build/html
d62b619
# Fix hidden-file-or-dir warnings
d62b619
rm -fr doc/build/html/.{doctrees,buildinfo}
e917630
%endif
f7411d7
6ce4532
%install
d62b619
%{py3_install}
f7411d7
d62b619
%files -n python3-%{sname}
Victoria Martínez de la Cruz 6969687
e917630
%doc README.rst
e917630
%license LICENSE
e917630
d62b619
%{python3_sitelib}/designateclient
d62b619
%exclude %{python3_sitelib}/%{sname}/tests
d62b619
%{python3_sitelib}/*.egg-info
e917630
d62b619
%files -n python3-%{sname}-tests
d62b619
%{python3_sitelib}/%{sname}/tests
e917630
6ce4532
%if 0%{?with_doc}
e917630
%files doc
7b1a76b
%doc doc/build/html
f7411d7
%license LICENSE
6ce4532
%endif
b281c6d
f7411d7
%changelog
909423d
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 4.1.0-2
909423d
- Update to upstream version 4.1.0
909423d
73a1e90
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2
73a1e90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
73a1e90
d62b619
* Thu Jun 04 2020 Joel Capitao <jcapitao@redhat.com> 4.0.0-1
d62b619
- Update to upstream version 4.0.0
d62b619
210aee7
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-3
210aee7
- Rebuilt for Python 3.9
210aee7
fb8c023
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
fb8c023
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fb8c023
33d6f3c
* Thu Nov 07 2019 Alfredo Moralejo <amoralej@redhat.com> 3.0.0-1
33d6f3c
- Update to upstream version 3.0.0
33d6f3c
49cbb81
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.11.0-4
49cbb81
- Rebuilt for Python 3.8.0rc1 (#1748018)
49cbb81
ef683b4
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.11.0-3
ef683b4
- Rebuilt for Python 3.8
ef683b4
b16b4e9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-2
b16b4e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b16b4e9
6ce4532
* Tue Mar 12 2019 RDO <dev@lists.rdoproject.org> 2.11.0-1
6ce4532
- Update to 2.11.0
9d67e6d