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

#
# spec file for package openstack-glance-doc
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#


%define component glance
%define version_unconverted 15.0.0.0rc2.dev25

Name:           openstack-%{component}-doc
Version:        15.0.0.0~rc2~dev25
Release:        0
Summary:        OpenStack Image Service (Glance) - Documentation
License:        Apache-2.0
Group:          Documentation/HTML
Url:            https://launchpad.net/glance
Source0:        http://tarballs.openstack.org/glance/glance-stable-pike.tar.gz
# # PATCH-FEATURE-UPSTREAM 0001-doc-Explicitly-set-builders-option.patch -- https://review.openstack.org/#/c/481514/
BuildRequires:  graphviz
BuildRequires:  openstack-suse-macros
BuildRequires:  python-Sphinx
BuildRequires:  python-base
BuildRequires:  python-glance
BuildRequires:  python-openstackdocstheme
BuildRequires:  python-oslo.config
BuildRequires:  python-oslosphinx
BuildRequires:  python-stevedore
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The OpenStack Image Service provides discovery, registration and
delivery services for disk and server images. The ability to copy or
snapshot a server image and immediately store it away is a powerful
capability of the OpenStack cloud operating system. Stored images can
be used as a template to get new servers up and running quickly—and
more consistently if you are provisioning multiple servers—than
installing a server operating system and individually configuring
additional services. It can also be used to store and catalog an
unlimited number of backups.

This package contains documentation files for openstack-glance.

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

%build
python setup.py build_sphinx
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