34e617a
%{?python_enable_dependency_generator}
6c6a690
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
34e617a
%global sources_gpg_sign 0x01527a34f0d0080f8a5db8d6eb6c5df21b4b6363
be7ce2d
%global pypi_name aodhclient
be7ce2d
e74af15
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
c01d858
%global with_doc 1
c01d858
c01d858
%global common_desc \
c01d858
This is a client library for Aodh built on the Aodh API. It \
c01d858
provides a Python API (the aodhclient module) and a command-line tool.
e74af15
be7ce2d
Name:             python-aodhclient
34e617a
Version:          2.4.1
a346c01
Release:          5%{?dist}
be7ce2d
Summary:          Python API and CLI for OpenStack Aodh
be7ce2d
be7ce2d
License:          ASL 2.0
e74af15
URL:              https://launchpad.net/python-aodhclient
c01d858
Source0:          https://tarballs.openstack.org/%{name}/%{pypi_name}-%{upstream_version}.tar.gz
6c6a690
# Required for tarball sources verification
6c6a690
%if 0%{?sources_gpg} == 1
6c6a690
Source101:        https://tarballs.openstack.org/%{name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
6c6a690
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
6c6a690
%endif
dc39220
Patch0:           0001-Revert-Add-OSprofiler-support-for-Aodh-client.patch
be7ce2d
be7ce2d
BuildArch:        noarch
be7ce2d
6c6a690
# Required for tarball sources verification
6c6a690
%if 0%{?sources_gpg} == 1
6c6a690
BuildRequires:  /usr/bin/gpgv2
6c6a690
%endif
6c6a690
e74af15
%description
c01d858
%{common_desc}
be7ce2d
d0f551c
%package -n python3-%{pypi_name}
c01d858
Summary:          Python API and CLI for OpenStack Aodh
d0f551c
%{?python_provide:%python_provide python3-%{pypi_name}}
c01d858
d0f551c
BuildRequires:    python3-setuptools
d0f551c
BuildRequires:    python3-devel
d0f551c
BuildRequires:    python3-pbr
60fb4d3
BuildRequires:    git-core
c01d858
d0f551c
Requires:         python3-pbr
d0f551c
Requires:         python3-cliff >= 1.14.0
d0f551c
Requires:         python3-oslo-i18n >= 1.5.0
d0f551c
Requires:         python3-oslo-serialization >= 1.4.0
d0f551c
Requires:         python3-oslo-utils >= 2.0.0
d0f551c
Requires:         python3-keystoneauth1 >= 1.0.0
d0f551c
Requires:         python3-six >= 1.9.0
d0f551c
Requires:         python3-osc-lib >= 1.0.1
d0f551c
Requires:         python3-pyparsing
d0f551c
d0f551c
%description -n python3-%{pypi_name}
c01d858
%{common_desc}
c01d858
c01d858
%if 0%{?with_doc}
e74af15
%package  doc
be7ce2d
Summary:          Documentation for OpenStack Aodh API Client
be7ce2d
d0f551c
BuildRequires:    python3-sphinx
d0f551c
BuildRequires:    python3-openstackdocstheme
d0f551c
BuildRequires:    python3-keystoneauth1
d0f551c
BuildRequires:    python3-oslo-utils
d0f551c
BuildRequires:    python3-oslo-serialization
d0f551c
BuildRequires:    python3-cliff
be7ce2d
be7ce2d
e74af15
%description doc
c01d858
%{common_desc}
be7ce2d
(aodh).
be7ce2d
be7ce2d
This package contains auto-generated documentation.
c01d858
%endif
be7ce2d
d0f551c
%package -n python3-%{pypi_name}-tests
be7ce2d
Summary:          Python API and CLI for OpenStack Aodh Tests
d0f551c
Requires:         python3-%{pypi_name} = %{version}-%{release}
be7ce2d
d0f551c
%description -n python3-%{pypi_name}-tests
c01d858
%{common_desc}
be7ce2d
be7ce2d
%prep
6c6a690
# Required for tarball sources verification
6c6a690
%if 0%{?sources_gpg} == 1
6c6a690
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
6c6a690
%endif
c01d858
%autosetup -n %{pypi_name}-%{upstream_version} -S git
be7ce2d
be7ce2d
# Let RPM handle the requirements
be7ce2d
rm -f {,test-}requirements.txt
be7ce2d
e74af15
be7ce2d
%build
d0f551c
%{py3_build}
be7ce2d
be7ce2d
%install
d0f551c
%{py3_install}
be7ce2d
c01d858
# Create a versioned binary for backwards compatibility until everything is pure py3
d0f551c
ln -s aodh %{buildroot}%{_bindir}/aodh-3
be7ce2d
c01d858
%if 0%{?with_doc}
c01d858
export PYTHONPATH=.
d0f551c
sphinx-build-3 -b html doc/source doc/build/html
d0f551c
# remove the sphinx-build-3 leftovers
c01d858
rm -rf doc/build/html/.{doctrees,buildinfo}
c01d858
%endif
c01d858
d0f551c
%files -n python3-%{pypi_name}
e74af15
%doc README.rst
c01d858
%license LICENSE
d0f551c
%{python3_sitelib}/aodhclient
d0f551c
%{python3_sitelib}/*.egg-info
bb8c3c5
%{_bindir}/aodh
d0f551c
%{_bindir}/aodh-3
d0f551c
%exclude %{python3_sitelib}/aodhclient/tests
be7ce2d
d0f551c
%files -n python3-%{pypi_name}-tests
be7ce2d
%license LICENSE
d0f551c
%{python3_sitelib}/aodhclient/tests
be7ce2d
c01d858
%if 0%{?with_doc}
e74af15
%files doc
c01d858
%doc doc/build/html
e74af15
%license LICENSE
c01d858
%endif
be7ce2d
be7ce2d
%changelog
a346c01
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-5
a346c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
a346c01
5fc8785
* Tue Jul 19 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.1-4
5fc8785
- Rebuilt for pyparsing-3.0.9
5fc8785
74f8d0e
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2.4.1-3
74f8d0e
- Rebuilt for Python 3.11
74f8d0e
dc39220
* Thu May 19 2022 Joel Capitao <jcapitao@redhat.com> 2.4.1-2
dc39220
- Removed support for osprofiler
dc39220
34e617a
* Wed May 18 2022 Joel Capitao <jcapitao@redhat.com> 2.4.1-1
34e617a
- Update to upstream version 2.4.1
34e617a
f22e1e6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
f22e1e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f22e1e6
95c6978
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
95c6978
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
95c6978
ebe0aa1
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.2.0-3
ebe0aa1
- Rebuilt for Python 3.10
ebe0aa1
1b1d16a
* Mon Nov 22 2021 Joel Capitao <amoralej@redhat.com> - 2.2.0-2
1b1d16a
- Removed support for osprofiler
1b1d16a
60fb4d3
* Tue Mar 16 2021 Joel Capitao <jcapitao@redhat.com> 2.2.0-1
60fb4d3
- Update to upstream version 2.2.0
60fb4d3
6f54300
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
6f54300
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
6f54300
f022ef5
* Fri Nov 06 2020 Alfredo Moralejo <amoralej@redhat.com> - 2.1.1-3
f022ef5
- Removed support for osprofiler
f022ef5
6c6a690
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 2.1.1-2
6c6a690
- Update to upstream version 2.1.1
6c6a690
4caac56
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
4caac56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4caac56
d3a2807
* Wed Jun 24 2020 Joel Capitao <jcapitao@redhat.com> 2.0.1-3
d3a2807
- Removed Requires osprofiler
d3a2807
7f7a9ae
* Wed Jun 24 2020 Joel Capitao <jcapitao@redhat.com> 2.0.1-2
7f7a9ae
- Removed support for osprofiler
7f7a9ae
d0f551c
* Thu Jun 04 2020 Joel Capitao <jcapitao@redhat.com> 2.0.1-1
d0f551c
- Update to upstream version 2.0.1
d0f551c
391c4ee
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-4
391c4ee
- Rebuilt for Python 3.9
391c4ee
05ef5b2
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
05ef5b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
05ef5b2
3ab6169
* Mon Nov 11 2019 Alfredo Moralejo <amoralej@redhat.com> 1.3.0-2
3ab6169
- Removed support for osprofiler
3ab6169
15d58de
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.3.0-1
15d58de
- Update to upstream version 1.3.0
15d58de
9cd9ec3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-4
9cd9ec3
- Rebuilt for Python 3.8.0rc1 (#1748018)
9cd9ec3
156e651
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-3
156e651
- Rebuilt for Python 3.8
156e651
0089b1b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
0089b1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0089b1b
c01d858
* Mon Mar 11 2019 RDO <dev@lists.rdoproject.org> 1.2.0-1
c01d858
- Update to 1.2.0
e74af15