File python-scciclient.spec of Package python-scciclient
#
# spec file for package python-scciclient
#
# Copyright (c) 2024 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-scciclient
Version: 0.12.3
Release: 0
Summary: Python API and CLI for OpenStack Scci
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/python-scciclient
Source0: https://files.pythonhosted.org/packages/source/p/python-scciclient/python-scciclient-0.12.3.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-defusedxml
BuildRequires: python3-fixtures
BuildRequires: python3-mock
BuildRequires: python3-oslo.serialization
BuildRequires: python3-oslo.utils
BuildRequires: python3-oslotest
BuildRequires: python3-pbr
BuildRequires: python3-pyghmi
BuildRequires: python3-pysnmp
BuildRequires: python3-python-subunit
BuildRequires: python3-requests-mock
BuildRequires: python3-setuptools
BuildRequires: python3-stestr
BuildRequires: python3-testscenarios
BuildRequires: python3-testtools
Requires: python3-Babel
Requires: python3-defusedxml
Requires: python3-oslo.serialization
Requires: python3-oslo.utils
Requires: python3-pbr
Requires: python3-pyghmi
Requires: python3-pysnmp
Requires: python3-requests
Requires: python3-six
BuildArch: noarch
%description
Client library for Scci built on the Scci API. It provides a Python API
(the scciclient module) and a command-line tool (scci).
%package doc
Summary: Documentation for OpenStack Scci API client libary
Group: Documentation/HTML
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
%description doc
Client library for Scci built on the Scci API. It provides a Python API
(the scciclient module) and a command-line tool (scci).
This package contains the documentation.
%prep
%autosetup -p1 -n %{name}-%{version}
%py_req_cleanup
%build
%py3_build
# Build HTML docs and man page
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%py3_install
%check
%{openstack_stestr_run}
%files
%doc README.rst
%license LICENSE
%{python3_sitelib}/scciclient
%{python3_sitelib}/*.egg-info
%files doc
%doc doc/build/html
%license LICENSE
%changelog