File openstack-magnum-doc.spec of Package openstack-magnum
#
# spec file for package openstack-magnum-doc
#
# Copyright (c) 2022 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 magnum
%define version_unconverted 5.0.2.dev31
Name: openstack-%{component}-doc
Version: 5.0.2~dev31
Release: 0
Summary: OpenStack shared file system service (Magnum) - Documentation
License: Apache-2.0
Group: Documentation/HTML
URL: https://launchpad.net/magnum
Source: http://tarballs.openstack.org/magnum/magnum-stable-pike.tar.gz
BuildRequires: graphviz
BuildRequires: openstack-suse-macros
BuildRequires: python-Sphinx
BuildRequires: python-magnum
BuildRequires: python-magnum = %{version}
BuildRequires: python-openstackdocstheme
BuildRequires: python-oslosphinx
BuildRequires: python-pbr
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
OpenStack shared file system service.
This package contains documentation files for %{name}.
%prep
%setup -q -n magnum-%{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