!2 Enable with_doc to generate docs
From: @huangtianhua Reviewed-by: @joec88 Signed-off-by: @joec88
This commit is contained in:
commit
19a5842b2a
@ -1,8 +1,8 @@
|
||||
%global with_doc 0
|
||||
%global with_doc 1
|
||||
Name: openstack-ironic
|
||||
Epoch: 0
|
||||
Version: 16.0.4
|
||||
Release: 0.1.dev3
|
||||
Release: 0.2.dev3
|
||||
Summary: Openstack Provisioning of Bare Metal Servers
|
||||
License: ASL 2.0
|
||||
URL: https://launchpad.net/ironic
|
||||
@ -156,7 +156,7 @@ BuildRequires: python3-sphinxcontrib-apidoc
|
||||
BuildRequires: python3-sphinxcontrib-httpdomain
|
||||
BuildRequires: python3-sphinxcontrib-pecanwsme
|
||||
BuildRequires: python3-sphinxcontrib-seqdiag
|
||||
BuildRequires: python3-sphinxcontrib-rsvgconverter
|
||||
BuildRequires: python3-sphinxcontrib-svg2pdfconverter
|
||||
|
||||
%description doc
|
||||
OpenStack bare metal provisioning service.
|
||||
@ -187,8 +187,8 @@ This package contains the OpenStack Ironic Conductor Manager Daemon.
|
||||
%{py3_build}
|
||||
|
||||
%if 0%{?with_doc}
|
||||
PYTHONPATH=. PBR_VERSION=16.0.4.dev3 %sphinx_build --keep-going -b html doc/source doc/build/html
|
||||
PYTHONPATH=. PBR_VERSION=16.0.4.dev3 %sphinx_build --keep-going -b man doc/source doc/build/man
|
||||
PYTHONPATH=. PBR_VERSION=16.0.4.dev3 sphinx-build --keep-going -b html doc/source doc/build/html
|
||||
PYTHONPATH=. PBR_VERSION=16.0.4.dev3 sphinx-build --keep-going -b man doc/source doc/build/man
|
||||
# remove the Sphinx-build leftovers
|
||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||
rm -rf doc/build/man/.{doctrees,buildinfo}
|
||||
@ -314,5 +314,7 @@ exit 0
|
||||
%{_bindir}/ironic-conductor
|
||||
|
||||
%changelog
|
||||
* Tue Feb 09 2021 huangtianhua <huangtianhua223@gmail.com>
|
||||
- Enable with_doc to generate docs
|
||||
* Mon Feb 08 2021 OpenStack rpm-packaging <huangtianhua223@gmail.com>
|
||||
- Package Spec generated
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user