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

#
# spec file for package openstack-nova-doc
#
# 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/
#


%define component nova
%define majorversion 2012.2.3

%define version_unconverted 18.3.1.dev76

Name:           openstack-%{component}-doc
Version:        18.3.1~dev76
Release:        0
Summary:        OpenStack Compute (Nova) - Documentation
License:        Apache-2.0
Group:          Documentation/HTML
URL:            http://openstack.org/projects/compute/
Source:         http://tarballs.openstack.org/nova/nova-stable-rocky.tar.gz
BuildRequires:  graphviz
BuildRequires:  openstack-suse-macros
BuildRequires:  python-Babel
BuildRequires:  python-Cheetah
BuildRequires:  python-PasteDeploy
BuildRequires:  python-Sphinx
BuildRequires:  python-WebOb
BuildRequires:  python-base
BuildRequires:  python-boto
BuildRequires:  python-nova
BuildRequires:  python-openstackdocstheme
BuildRequires:  python-pbr
BuildRequires:  python-six
BuildRequires:  python-sphinx-feature-classification
BuildRequires:  python-sphinxcontrib-actdiag
BuildRequires:  python-sphinxcontrib-apidoc
BuildRequires:  python-sphinxcontrib-seqdiag
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Nova is a cloud computing fabric controller (the main part of an IaaS
system) built to match the popular AWS EC2 and S3 APIs. It is written
in Python, using the Tornado and Twisted frameworks, and relies on the
standard AMQP messaging protocol.

This package contains documentation files for openstack-nova.

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

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

%install

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

%changelog
openSUSE Build Service is sponsored by