|
|
aacab73 |
%global sources_gpg 0
|
|
|
aacab73 |
%global sources_gpg_sign 0x2426b928085a020d8a90d0d879ab7008d0896c8a
|
|
|
aacab73 |
|
|
|
53727ce |
%global pypi_name gnocchiclient
|
|
|
53727ce |
|
|
|
53727ce |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
aacab73 |
# we are excluding some BRs from automatic generator
|
|
|
aacab73 |
%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order
|
|
|
aacab73 |
# Exclude sphinx from BRs if docs are disabled
|
|
|
aacab73 |
%if ! 0%{?with_doc}
|
|
|
aacab73 |
%global excluded_brs %{excluded_brs} sphinx openstackdocstheme
|
|
|
aacab73 |
%endif
|
|
|
53727ce |
|
|
|
aacab73 |
# NOTE(jpena): doc build fails with recent cliff versions, and hardcodes
|
|
|
aacab73 |
# a call to unversioned python in
|
|
|
aacab73 |
# https://github.com/gnocchixyz/python-gnocchiclient/blob/master/doc/source/conf.py#L54
|
|
|
aacab73 |
%global with_doc 0
|
|
|
53727ce |
|
|
|
53727ce |
%global common_desc \
|
|
|
53727ce |
This is a client library for Gnocchi built on the Gnocchi API. It \
|
|
|
53727ce |
provides a Python API (the gnocchiclient module) and a command-line tool.
|
|
|
53727ce |
|
|
|
53727ce |
Name: python-gnocchiclient
|
|
|
aacab73 |
Version: 7.0.8
|
|
|
8599427 |
Release: 3%{?dist}
|
|
|
53727ce |
Summary: Python API and CLI for OpenStack Gnocchi
|
|
|
53727ce |
|
|
|
aacab73 |
License: Apache-2.0
|
|
|
53727ce |
URL: https://github.com/openstack/%{name}
|
|
|
53727ce |
Source0: https://pypi.io/packages/source/g/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
|
|
|
aacab73 |
# Required for tarball sources verification
|
|
|
aacab73 |
%if 0%{?sources_gpg} == 1
|
|
|
aacab73 |
Source101: https://tarballs.openstack.org/%{name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
|
|
|
aacab73 |
Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
|
|
|
53727ce |
%endif
|
|
|
53727ce |
BuildArch: noarch
|
|
|
53727ce |
|
|
|
aacab73 |
# Required for tarball sources verification
|
|
|
aacab73 |
%if 0%{?sources_gpg} == 1
|
|
|
aacab73 |
BuildRequires: /usr/bin/gpgv2
|
|
|
aacab73 |
%endif
|
|
|
53727ce |
|
|
|
aacab73 |
%description
|
|
|
53727ce |
%{common_desc}
|
|
|
53727ce |
|
|
|
53727ce |
%package -n python3-%{pypi_name}
|
|
|
53727ce |
Summary: Python API and CLI for OpenStack Gnocchi
|
|
|
53727ce |
|
|
|
53727ce |
|
|
|
53727ce |
BuildRequires: python3-devel
|
|
|
aacab73 |
BuildRequires: pyproject-rpm-macros
|
|
|
53727ce |
%description -n python3-%{pypi_name}
|
|
|
53727ce |
%{common_desc}
|
|
|
53727ce |
|
|
|
53727ce |
|
|
|
aacab73 |
%if 0%{?with_doc}
|
|
|
aacab73 |
%package -n python-%{pypi_name}-doc
|
|
|
aacab73 |
Summary: Documentation for OpenStack Gnocchi API Client
|
|
|
aacab73 |
Group: Documentation
|
|
|
53727ce |
|
|
|
aacab73 |
%description doc
|
|
|
53727ce |
%{common_desc}
|
|
|
53727ce |
|
|
|
aacab73 |
This package contains auto-generated documentation.
|
|
|
aacab73 |
%endif
|
|
|
53727ce |
|
|
|
53727ce |
%prep
|
|
|
aacab73 |
# Required for tarball sources verification
|
|
|
aacab73 |
%if 0%{?sources_gpg} == 1
|
|
|
aacab73 |
%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
|
|
|
aacab73 |
%endif
|
|
|
aacab73 |
%autosetup -n %{pypi_name}-%{upstream_version}
|
|
|
aacab73 |
|
|
|
aacab73 |
2to3 --write --nobackups .
|
|
|
aacab73 |
|
|
|
aacab73 |
|
|
|
aacab73 |
|
|
|
aacab73 |
sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini
|
|
|
aacab73 |
sed -i "s/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/" tox.ini
|
|
|
aacab73 |
sed -i /^minversion.*/d tox.ini
|
|
|
aacab73 |
sed -i /^requires.*virtualenv.*/d tox.ini
|
|
|
aacab73 |
sed -i '/\.\[test,openstack\]/,+2d' tox.ini
|
|
|
aacab73 |
sed -i '/\.*\[testenv\]deps/,+1d' tox.ini
|
|
|
aacab73 |
sed -i '/\.\[test,doc\]/d' tox.ini
|
|
|
aacab73 |
|
|
|
aacab73 |
# Exclude some bad-known BRs
|
|
|
aacab73 |
for pkg in %{excluded_brs}; do
|
|
|
aacab73 |
for reqfile in doc/requirements.txt test-requirements.txt; do
|
|
|
aacab73 |
if [ -f $reqfile ]; then
|
|
|
aacab73 |
sed -i /^${pkg}.*/d $reqfile
|
|
|
aacab73 |
fi
|
|
|
aacab73 |
done
|
|
|
aacab73 |
done
|
|
|
aacab73 |
|
|
|
aacab73 |
# Automatic BR generation
|
|
|
aacab73 |
%generate_buildrequires
|
|
|
aacab73 |
%if 0%{?with_doc}
|
|
|
aacab73 |
%pyproject_buildrequires -t -e %{default_toxenv},docs
|
|
|
aacab73 |
%else
|
|
|
aacab73 |
%pyproject_buildrequires -t -e %{default_toxenv}
|
|
|
aacab73 |
%endif
|
|
|
53727ce |
|
|
|
53727ce |
%build
|
|
|
aacab73 |
%pyproject_wheel
|
|
|
53727ce |
|
|
|
aacab73 |
%if 0%{?with_doc}
|
|
|
aacab73 |
%tox -e docs
|
|
|
53727ce |
|
|
|
53727ce |
# Fix hidden-file-or-dir warnings
|
|
|
53727ce |
rm -rf doc/build/html/.doctrees doc/build/html/.buildinfo
|
|
|
aacab73 |
%endif
|
|
|
aacab73 |
|
|
|
aacab73 |
%install
|
|
|
aacab73 |
%pyproject_install
|
|
|
aacab73 |
|
|
|
aacab73 |
# Create a versioned binary for backwards compatibility until everything is pure py3
|
|
|
aacab73 |
ln -s gnocchi %{buildroot}%{_bindir}/gnocchi-3
|
|
|
53727ce |
|
|
|
53727ce |
%files -n python3-%{pypi_name}
|
|
|
53727ce |
%doc README.rst
|
|
|
53727ce |
%license LICENSE
|
|
|
53727ce |
%{_bindir}/gnocchi
|
|
|
aacab73 |
%{_bindir}/gnocchi-3
|
|
|
53727ce |
%{python3_sitelib}/gnocchiclient
|
|
|
aacab73 |
%{python3_sitelib}/*.dist-info
|
|
|
53727ce |
|
|
|
aacab73 |
%if 0%{?with_doc}
|
|
|
53727ce |
%files -n python-%{pypi_name}-doc
|
|
|
aacab73 |
%doc doc/build/html
|
|
|
aacab73 |
%endif
|
|
|
53727ce |
|
|
|
53727ce |
%changelog
|
|
|
8599427 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.8-3
|
|
|
8599427 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
8599427 |
|
|
|
c96456e |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.8-2
|
|
|
c96456e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
c96456e |
|
|
|
aacab73 |
* Wed Oct 25 2023 Alfredo Moralejo <amoralej@gmail.com> 7.0.8-1
|
|
|
aacab73 |
- Update to upstream version 7.0.8
|
|
|
aacab73 |
|
|
|
79813c0 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.7-10
|
|
|
79813c0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
79813c0 |
|
|
|
170ec62 |
* Mon Jul 10 2023 Python Maint <python-maint@redhat.com> - 7.0.7-9
|
|
|
170ec62 |
- Rebuilt for Python 3.12
|
|
|
170ec62 |
|
|
|
f808266 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.7-8
|
|
|
f808266 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
f808266 |
|
|
|
9904b18 |
* Wed Jan 11 2023 Alfredo Moralejo <amoralej@redhat.com> - 7.0.7-7
|
|
|
9904b18 |
- Rebuild for Fedora 38
|
|
|
9904b18 |
|
|
|
53727ce |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.7-6
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.7-5
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.7-4
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 7.0.7-3
|
|
|
53727ce |
- Rebuilt for Python 3.10
|
|
|
53727ce |
|
|
|
53727ce |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.7-2
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Mon Oct 05 2020 Matthias Runge <mrunge@redhat.com> - 7.0.7-1
|
|
|
53727ce |
- updated to 7.0.7
|
|
|
53727ce |
|
|
|
53727ce |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-9
|
|
|
53727ce |
- Second attempt - Rebuilt for
|
|
|
53727ce |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-8
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 7.0.4-7
|
|
|
53727ce |
- Rebuilt for Python 3.9
|
|
|
53727ce |
|
|
|
53727ce |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-6
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 7.0.4-5
|
|
|
53727ce |
- Rebuilt for Python 3.8
|
|
|
53727ce |
|
|
|
53727ce |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-4
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-3
|
|
|
53727ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
53727ce |
|
|
|
53727ce |
* Sun Oct 28 2018 Miro Hrončok <mhroncok@redhat.com> - 7.0.4-2
|
|
|
53727ce |
- Subpackages python2-gnocchiclient, python2-gnocchiclient-tests have been removed
|
|
|
53727ce |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
53727ce |
|
|
|
53727ce |
* Thu Aug 09 2018 RDO <dev@lists.rdoproject.org> 7.0.4-1
|
|
|
53727ce |
- Update to 7.0.4
|
|
|
53727ce |
|