File openstack-ironic-doc.spec of Package openstack-ironic

#
# spec file
#
# 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/
#


%define component ironic

%define version_unconverted 11.1.5.dev18

Name:           openstack-%{component}-doc
Version:        11.1.5~dev18
Release:        0
Summary:        OpenStack Ironic - Documentation
License:        Apache-2.0
Group:          Documentation/HTML
URL:            https://launchpad.net/ironic
Source:         http://tarballs.openstack.org/ironic/ironic-stable-rocky.tar.gz
BuildRequires:  graphviz
BuildRequires:  openstack-%{component}-test
BuildRequires:  openstack-suse-macros
BuildRequires:  python-%{component}
BuildRequires:  python-Sphinx
BuildRequires:  python-ironic
BuildRequires:  python-openstackdocstheme
BuildRequires:  python-sphinxcontrib-apidoc
BuildRequires:  python-sphinxcontrib-seqdiag
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Ironic is an Incubated OpenStack project which aims to provision bare metal
machines instead of virtual machines, forked from the Nova Baremetal driver.
It is best thought of as a bare metal hypervisor API and a set of plugins
which interact with the bare metal hypervisors. By default, it will use
PXE and IPMI in concert to provision and turn on/off machines, but Ironic
also supports vendor-specific plugins which may implement additional functionality.

This package contains documentation files for openstack-ironic.

%prep
%setup -q -n %{component}-%{version_unconverted}
%openstack_cleanup_prep
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg

%build
PBR_VERSION=%version_unconverted PYTHONPATH=. sphinx-build -b html doc/source doc/build/html
rm doc/build/html/.buildinfo # Remove unneeded files

%install

%files
%defattr(-,root,root,-)
%doc LICENSE doc/build/html

%changelog
openSUSE Build Service is sponsored by