Blame python-barbicanclient.spec

ab1e0c2
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
ab1e0c2
%global sources_gpg_sign 0x2426b928085a020d8a90d0d879ab7008d0896c8a
8ae42b6
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
1878ae0
84b1ee6
%global with_doc 1
84b1ee6
1878ae0
%global sname barbicanclient
1878ae0
4bbcf06
%global common_desc \
4bbcf06
This is a client for the Barbican Key Management API. There is a \
4bbcf06
Python library for accessing the API (barbicanclient module), and \
4bbcf06
a command-line script (barbican).
4c8e63c
4c8e63c
Name:           python-barbicanclient
ab1e0c2
Version:        5.0.1
181d091
Release:        2%{?dist}
4c8e63c
Summary:        Client Library for OpenStack Barbican Key Management API
4c8e63c
4c8e63c
License:        ASL 2.0
4bbcf06
URL:            https://pypi.python.org/pypi/python-barbicanclient
4bbcf06
Source0:        https://tarballs.openstack.org/%{name}/%{name}-%{upstream_version}.tar.gz
ab1e0c2
# Required for tarball sources verification
ab1e0c2
%if 0%{?sources_gpg} == 1
ab1e0c2
Source101:        https://tarballs.openstack.org/%{name}/%{name}-%{upstream_version}.tar.gz.asc
ab1e0c2
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
ab1e0c2
%endif
4c8e63c
4c8e63c
BuildArch:      noarch
4c8e63c
ab1e0c2
# Required for tarball sources verification
ab1e0c2
%if 0%{?sources_gpg} == 1
ab1e0c2
BuildRequires:  /usr/bin/gpgv2
ab1e0c2
%endif
ab1e0c2
84b1ee6
BuildRequires:  git
1878ae0
%description
4bbcf06
%{common_desc}
1878ae0
60ade99
%package -n python3-%{sname}
1878ae0
Summary:        Client Library for OpenStack Barbican Key Management API
60ade99
%{?python_provide:%python_provide python3-%{sname}}
3dbfc7b
Obsoletes: python2-%{sname} < %{version}-%{release}
3dbfc7b
60ade99
BuildRequires:  python3-devel
60ade99
BuildRequires:  python3-pbr
60ade99
BuildRequires:  python3-setuptools
60ade99
Requires:       python3-requests
60ade99
Requires:       python3-six >= 1.10.0
60ade99
Requires:       python3-oslo-i18n >= 3.15.3
60ade99
Requires:       python3-oslo-serialization >= 2.18.0
60ade99
Requires:       python3-oslo-utils >= 3.33.0
60ade99
Requires:       python3-prettytable
60ade99
Requires:       python3-keystoneauth1 >= 3.4.0
60ade99
Requires:       python3-pbr >= 2.0.0
60ade99
Requires:       python3-cliff
60ade99
60ade99
%description -n python3-%{sname}
4bbcf06
%{common_desc}
1878ae0
84b1ee6
%if 0%{?with_doc}
3dbfc7b
%package -n python-%{sname}-doc
4c8e63c
Summary: Documentation for OpenStack Barbican API client
4c8e63c
60ade99
BuildRequires:  python3-sphinx
60ade99
BuildRequires:  python3-sphinxcontrib-rsvgconverter
60ade99
BuildRequires:  python3-openstackdocstheme
60ade99
BuildRequires:  python3-oslo-utils
60ade99
BuildRequires:  python3-oslo-i18n
60ade99
BuildRequires:  python3-prettytable
4c8e63c
3dbfc7b
%description -n python-%{sname}-doc
4c8e63c
Documentation for the barbicanclient module
84b1ee6
%endif
4c8e63c
4c8e63c
%prep
ab1e0c2
# Required for tarball sources verification
ab1e0c2
%if 0%{?sources_gpg} == 1
ab1e0c2
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
ab1e0c2
%endif
4bbcf06
%autosetup -n %{name}-%{upstream_version} -S git
4c8e63c
# let RPM handle deps
4c8e63c
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
4c8e63c
4c8e63c
rm -rf {test-,}requirements.txt
4c8e63c
4c8e63c
%build
60ade99
%{py3_build}
1878ae0
84b1ee6
%if 0%{?with_doc}
4c8e63c
# doc
60ade99
%{__python3} setup.py build_sphinx -b html
4c8e63c
# Fix hidden-file-or-dir warnings
4c8e63c
rm -fr doc/build/html/.buildinfo
84b1ee6
%endif
4c8e63c
4c8e63c
%install
60ade99
%{py3_install}
60ade99
ln -s ./barbican %{buildroot}%{_bindir}/barbican-3
1878ae0
60ade99
%files -n python3-%{sname}
1878ae0
%license LICENSE
1878ae0
%doc AUTHORS CONTRIBUTING.rst README.rst PKG-INFO ChangeLog
4c8a2bf
%{_bindir}/barbican
60ade99
%{_bindir}/barbican-3
60ade99
%{python3_sitelib}/barbicanclient
ab1e0c2
%{python3_sitelib}/python_barbicanclient-%{upstream_version}-py?.?.egg-info
1878ae0
84b1ee6
%if 0%{?with_doc}
3dbfc7b
%files -n python-%{sname}-doc
4c8e63c
%doc doc/build/html
4c8e63c
%license LICENSE
84b1ee6
%endif
4c8e63c
4c8e63c
%changelog
ab1e0c2
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 5.0.1-2
ab1e0c2
- Update to upstream version 5.0.1
ab1e0c2
181d091
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.0-2
181d091
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
181d091
60ade99
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 4.10.0-1
60ade99
- Update to upstream version 4.10.0
60ade99
153b6bf
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.9.0-4
153b6bf
- Rebuilt for Python 3.9
153b6bf
8ae1282
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.0-3
8ae1282
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8ae1282
3dbfc7b
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 4.9.0-2
3dbfc7b
- Update to upstream version 4.9.0
3dbfc7b
d32e87a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.8.1-4
d32e87a
- Rebuilt for Python 3.8.0rc1 (#1748018)
d32e87a
d6dbef6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.8.1-3
d6dbef6
- Rebuilt for Python 3.8
d6dbef6
df42eeb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.1-2
df42eeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
df42eeb
84b1ee6
* Tue Mar 12 2019 RDO <dev@lists.rdoproject.org> 4.8.1-1
84b1ee6
- Update to 4.8.1
e6214ae