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

#
# spec file for package openstack-tripleo-common
#
# Copyright (c) 2023 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:           openstack-tripleo-common
Version:        16.1.0
Release:        0
Summary:        Python library for code used by TripleO projects
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/tripleo-common
Source0:        https://files.pythonhosted.org/packages/source/t/tripleo-common/tripleo-common-16.1.0.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-glanceclient
BuildRequires:  python3-heatclient
BuildRequires:  python3-ironic-inspector-client
BuildRequires:  python3-ironicclient
BuildRequires:  python3-novaclient
BuildRequires:  python39-GitPython
BuildRequires:  python39-PyYAML
BuildRequires:  python39-docker
BuildRequires:  python39-eventlet
BuildRequires:  python39-metalsmith
BuildRequires:  python39-oslo.concurrency
BuildRequires:  python39-oslo.log
BuildRequires:  python39-oslo.rootwrap
BuildRequires:  python39-oslotest
BuildRequires:  python39-paramiko
BuildRequires:  python39-passlib
BuildRequires:  python39-python-subunit
BuildRequires:  python39-requests-mock
BuildRequires:  python39-setuptools
BuildRequires:  python39-stestr
BuildRequires:  python39-tenacity
BuildRequires:  python39-testscenarios
BuildRequires:  python39-testtools
Requires:       ansible
Requires:       python39-Babel
Requires:       python39-GitPython
Requires:       python39-Jinja2
# FIXME(jpena): specifying a version below is apparently needed for RDO
Requires:       python39-docker >= 2.0.0
Requires:       python3-glanceclient
Requires:       python3-heatclient
Requires:       python3-ironic-inspector-client
Requires:       python3-ironicclient
Requires:       python3-keystoneclient
Requires:       python3-novaclient
Requires:       python3-zaqarclient
Requires:       python39-eventlet
Requires:       python39-jsonschema
Requires:       python39-keystoneauth1
Requires:       python39-metalsmith
Requires:       python39-netaddr
Requires:       python39-netifaces
Requires:       python39-oslo.concurrency
Requires:       python39-oslo.config
Requires:       python39-oslo.log
Requires:       python39-oslo.rootwrap
Requires:       python39-oslo.utils
Requires:       python39-paramiko
Requires:       python39-passlib
Requires:       python39-requests
Requires:       python39-six
Requires:       python39-tenacity
BuildArch:      noarch

%description
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:  python39-Sphinx
BuildRequires:  python39-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
Requires:       %{name} = %{version}-%{release}

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

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

%build
%{py3_build}

PYTHONPATH=. %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
%doc README.rst ChangeLog
%license LICENSE
%{python3_sitelib}/tripleo_common
%{python3_sitelib}/*.egg-info
%dir %{_prefix}/lib/heat
%{_prefix}/lib/heat/undercloud_heat_plugins
%{_bindir}/upload-puppet-modules
%{_bindir}/upload-swift-artifacts
%{_bindir}/tripleo-build-images
%{_bindir}/tripleo-config-download
%{_bindir}/bootstrap_host_exec
%{_bindir}/bootstrap_host_only_exec
%{_bindir}/bootstrap_host_only_eval
%{_datadir}/tripleo-common

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

%files devtools
%{_bindir}/pull-puppet-modules

%changelog
openSUSE Build Service is sponsored by