From 33f8f88af75cde9a26e24ab01d2509fb32609f82 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 28 Jan 2014 16:43:46 +0800 Subject: [PATCH] Now building the doc in a heat-doc package. Rewritten-From: a8dcce6bdb6292ba71415c45e16ec37c70bfa7e9 --- trusty/debian/changelog | 1 + trusty/debian/control | 12 ++++++++++++ trusty/debian/heat-doc.doc-base | 9 +++++++++ trusty/debian/rules | 13 ++++++++++--- 4 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 trusty/debian/heat-doc.doc-base diff --git a/trusty/debian/changelog b/trusty/debian/changelog index c1d2666b..86c847f5 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -2,6 +2,7 @@ heat (2014.1~b2-1) experimental; urgency=low * New upstream release (Icehouse beta 1). * Added new (build)-depends python-heatclient (>= 0.2.3). + * Now building the sphinx doc in a heat-doc package. -- Thomas Goirand Mon, 09 Dec 2013 22:01:07 +0800 diff --git a/trusty/debian/control b/trusty/debian/control index f06039ab..3a3f9328 100644 --- a/trusty/debian/control +++ b/trusty/debian/control @@ -191,3 +191,15 @@ Description: OpenStack orchestration service - CloudWatch API CloudFormation-compatible Query API. . This package contains the CloudWatch API. + +Package: heat-doc +Architecture: all +Section: doc +Pre-Depends: dpkg (>= 1.15.6~) +Depends: ${misc:Depends}, ${sphinxdoc:Depends} +Description: OpenStack orchestration service - Documentation + Heat is a service to orchestrate multiple composite cloud applications using + templates, through both an OpenStack-native ReST API and a + CloudFormation-compatible Query API. + . + This package contains the documentation. diff --git a/trusty/debian/heat-doc.doc-base b/trusty/debian/heat-doc.doc-base new file mode 100644 index 00000000..014b2067 --- /dev/null +++ b/trusty/debian/heat-doc.doc-base @@ -0,0 +1,9 @@ +Document: heat-doc +Title: Heat Documentation +Author: OpenStack +Abstract: Sphinx documentation for Heat +Section: Network/File Transfer + +Format: HTML +Index: /usr/share/doc/heat-doc/html/index.html +Files: /usr/share/doc/heat-doc/html/* diff --git a/trusty/debian/rules b/trusty/debian/rules index 01441438..e504c40e 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -4,7 +4,7 @@ include /usr/share/openstack-pkg-tools/pkgos.make export OSLO_PACKAGE_VERSION=$(VERSION) %: - dh $@ --with python2 + dh $@ --buildsystem=python_distutils --with python2,sphinxdoc ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: @@ -32,6 +32,13 @@ override_dh_auto_build: /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func heat-common.config override_dh_installman: - python setup.py build - make -C doc man +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + sphinx-build -b man doc/source doc/build/man dh_installman +endif + +override_dh_sphinxdoc: +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + sphinx-build -b html doc/source $(CURDIR)/debian/heat-doc/usr/share/doc/heat-doc/html + dh_sphinxdoc -O--buildsystem=python_distutils +endif -- 2.45.2