File openstack-tripleo-common.spec of Package openstack-tripleo-common

# spec file for package openstack-tripleo-common
# 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

Name:           openstack-tripleo-common
Version:        12.7.0
Release:        0
Summary:        Python library for code used by TripleO projects
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python3-GitPython
BuildRequires:  python3-PyYAML
BuildRequires:  python3-docker
BuildRequires:  python3-eventlet
BuildRequires:  python3-glanceclient
BuildRequires:  python3-heatclient
BuildRequires:  python3-ironic-inspector-client
BuildRequires:  python3-ironicclient
BuildRequires:  python3-metalsmith
BuildRequires:  python3-mistral-lib
BuildRequires:  python3-mistralclient
BuildRequires:  python3-novaclient
BuildRequires:  python3-oslo.concurrency
BuildRequires:  python3-oslo.log
BuildRequires:  python3-oslo.rootwrap
BuildRequires:  python3-oslotest
BuildRequires:  python3-paramiko
BuildRequires:  python3-passlib
BuildRequires:  python3-python-subunit
BuildRequires:  python3-requests-mock
BuildRequires:  python3-setuptools
BuildRequires:  python3-stestr
BuildRequires:  python3-tenacity
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
BuildRequires:  python3-zaqarclient
Requires:       ansible
Requires:       python3-Babel
Requires:       python3-GitPython
Requires:       python3-Jinja2
# FIXME(jpena): specifying a version below is apparently needed for RDO
Requires:       python3-docker >= 2.0.0
Requires:       python3-eventlet
Requires:       python3-glanceclient
Requires:       python3-heatclient
Requires:       python3-ironic-inspector-client
Requires:       python3-ironicclient
Requires:       python3-keystoneauth1
Requires:       python3-keystoneclient
Requires:       python3-metalsmith
Requires:       python3-mistral-lib
Requires:       python3-mistralclient
Requires:       python3-netaddr
Requires:       python3-netifaces
Requires:       python3-novaclient
Requires:       python3-oslo.concurrency
Requires:       python3-oslo.config
Requires:       python3-oslo.log
Requires:       python3-oslo.rootwrap
Requires:       python3-oslo.utils
Requires:       python3-paramiko
Requires:       python3-passlib
Requires:       python3-six
Requires:       python3-tenacity
Requires:       python3-zaqarclient
BuildArch:      noarch

Python library for code used by TripleO projects.

%package doc
Summary:        Documentation for Python library for code used by TripleO projects
Group:          Documentation/HTML
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme

%description      doc
Python library for code used by TripleO projects.
This package contains auto-generated documentation.

%package devtools
Summary:        A collection of tools for TripleO developers and CI
Group:          Development/Languages/Python
Requires:       %{name} = %{version}-%{release}

%description devtools
This package installs the TripleO tools for developers and CI that typically
don't fit in a product.

%autosetup -n tripleo-common-%{version}


PYTHONPATH=. %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}


%{__python3} -m stestr.cli run

%doc README.rst ChangeLog
%license LICENSE
%dir %{_prefix}/lib/heat

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

%files devtools