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

#
# spec file for package openstack-sahara-doc
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 sahara

%define version_unconverted 9.0.2.dev14

Name:           openstack-%{component}-doc
Version:        9.0.2~dev14
Release:        0
Summary:        OpenStack Data Processing (Sahara) - Documentation
License:        Apache-2.0
Group:          Documentation/HTML
Url:            https://launchpad.net/sahara
Source:         http://tarballs.openstack.org/sahara/sahara-stable-rocky.tar.gz
BuildRequires:  graphviz
BuildRequires:  openstack-suse-macros

BuildRequires:  python-Babel >= 1.3
BuildRequires:  python-Sphinx
BuildRequires:  python-botocore
BuildRequires:  python-castellan
BuildRequires:  python-cinderclient
BuildRequires:  python-heatclient
BuildRequires:  python-keystoneclient
BuildRequires:  python-keystonemiddleware
BuildRequires:  python-manilaclient
BuildRequires:  python-neutronclient
BuildRequires:  python-novaclient
BuildRequires:  python-openstackdocstheme
BuildRequires:  python-oslo.config
BuildRequires:  python-oslo.db
BuildRequires:  python-oslo.policy
BuildRequires:  python-oslosphinx
BuildRequires:  python-paramiko
BuildRequires:  python-sahara = %{version}
BuildRequires:  python-sphinxcontrib-httpdomain
BuildRequires:  python-swiftclient
Requires:       logrotate
Requires(pre):  pwdutils
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Sahara project aims to provide users with simple means to provision
a Hadoop cluster at OpenStack by specifying several parameters like
Hadoop version, cluster topology, nodes hardware details and a few more.

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
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