
Fedora and RHEL transitioned away from legacy to standardized SPDX identifiers, so we no longer need to wrap them Change-Id: I95627dd233282da4d0e5323bfb2a29e378561c55 Signed-off-by: Dirk Müller <dirk@dmllr.de>
86 lines
2.6 KiB
Django/Jinja
86 lines
2.6 KiB
Django/Jinja
{% set pypi_name = 'oslo.reports' %}
|
|
{% set upstream_version = upstream_version('3.5.1') %}
|
|
{% set rpm_release = '1' %}
|
|
{% set source = url_pypi() %}
|
|
|
|
Name: {{ py2name() }}
|
|
Version: {{ py2rpmversion() }}
|
|
Release: {{ py2rpmrelease() }}
|
|
Summary: OpenStack oslo.reports library
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://docs.openstack.org/{{ pypi_name }}
|
|
Source0: {{ source }}
|
|
# https://review.opendev.org/c/openstack/oslo.reports/+/927739
|
|
Patch1: 0001-Handle-shell_completion-option-in-test-suite.patch
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py3('Jinja2') }}
|
|
BuildRequires: {{ py3('eventlet') }}
|
|
BuildRequires: {{ py3('greenlet') }}
|
|
BuildRequires: {{ py3('oslo.config') }}
|
|
BuildRequires: {{ py3('oslo.i18n') }}
|
|
BuildRequires: {{ py3('oslo.serialization') }}
|
|
BuildRequires: {{ py3('oslo.utils') }}
|
|
BuildRequires: {{ py3('oslotest') }}
|
|
BuildRequires: {{ py3('pbr') }}
|
|
BuildRequires: {{ py3('psutil') }}
|
|
BuildRequires: {{ py3('stestr') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The project oslo.reports hosts a general purpose error report generation
|
|
framework, known as the "guru meditation report".
|
|
|
|
%package -n {{ py2name(py_versions='py3') }}
|
|
Summary: OpenStack oslo.reports library
|
|
Requires: {{ py3('Jinja2') }}
|
|
Requires: {{ py3('oslo.i18n') }}
|
|
Requires: {{ py3('oslo.serialization') }}
|
|
Requires: {{ py3('oslo.utils') }}
|
|
Requires: {{ py3('psutil') }}
|
|
|
|
%description -n {{ py2name(py_versions='py3') }}
|
|
The project oslo.reports hosts a general purpose error report generation
|
|
framework, known as the "guru meditation report".
|
|
|
|
%package -n python-oslo.reports-doc
|
|
Summary: Documentation for OpenStack reports library
|
|
BuildRequires: {{ py3('Sphinx') }}
|
|
BuildRequires: {{ py3('openstackdocstheme') }}
|
|
BuildRequires: {{ py3('sphinxcontrib-apidoc') }}
|
|
|
|
%description -n python-oslo.reports-doc
|
|
The project oslo.reports hosts a general purpose error report generation
|
|
framework, known as the "guru meditation report".
|
|
This package contains the documentation.
|
|
|
|
%prep
|
|
%autosetup -p1 -n oslo_reports-{{ upstream_version }}
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
# generate html docs
|
|
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%{py3_install}
|
|
|
|
%check
|
|
%{openstack_stestr_run}
|
|
|
|
%files -n {{ py2name(py_versions='py3') }}
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog
|
|
%{python3_sitelib}/oslo_reports
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
%files -n python-oslo.reports-doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|