File python-ceilometermiddleware.spec of Package python-ceilometermiddleware

#
# spec file for package python-ceilometermiddleware
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-ceilometermiddleware
Version:        2.1.0
Release:        0
Summary:        A library for metric and event data generation for Ceilometer
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/ceilometermiddleware/latest/
Source0:        https://files.pythonhosted.org/packages/source/c/ceilometermiddleware/ceilometermiddleware-2.1.0.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-betamax
BuildRequires:  python3-keystoneauth1
BuildRequires:  python3-keystoneclient
BuildRequires:  python3-mock
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.messaging
BuildRequires:  python3-oslo.utils
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-pycadf
BuildRequires:  python3-stestr
BuildRequires:  python3-testrepository
Requires:       python3-keystoneauth1
Requires:       python3-keystoneclient
Requires:       python3-oslo.config
Requires:       python3-oslo.messaging
Requires:       python3-oslo.utils
Requires:       python3-pbr
Requires:       python3-pycadf
Requires:       python3-six
BuildArch:      noarch

%description
This library provides middleware modules designed to enable metric and
event data generation to be consumed by Ceilometer.

%package doc
Summary:        Documentation for %{name}
Group:          Documentation/HTML
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme

%description doc
This library provides middleware modules designed to enable metric and
event data generation to be consumed by Ceilometer.

This package contains documentation in HTML format.

%prep
%autosetup -p1 -n ceilometermiddleware-2.1.0
%py_req_cleanup

%build
%py3_build

# generate html docs
PBR_VERSION=2.1.0 %sphinx_build -b html doc/source doc/build/html
# remove the Sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}

%check
%{__python3} -m stestr.cli run

%install
%py3_install

%files
%license LICENSE
%doc README.rst
%{python3_sitelib}/ceilometermiddleware
%{python3_sitelib}/ceilometermiddleware-*.egg-info

%files doc
%license LICENSE
%doc doc/build/html

%changelog