* debian/control:
- Add horizon-doc package section
- Add python-oslosphinx to build dependencies
* debian/rules:
- Add sphinxdoc to build with
- Add override_dh_sphinxdoc section
* Add debian/horizon-doc.doc-base
Related-Bug: #
1460282
Change-Id: I8c039734a5843dd0f6735c61d24dc6edafd1de11
+horizon (1:2015.1.0-1~u14.04+mos5) mos7.0; urgency=medium
+
+ * debian/control:
+ - Add horizon-doc package section
+ - Add python-oslosphinx to build dependencies
+ * debian/rules:
+ - Add sphinxdoc to build with
+ - Add override_dh_sphinxdoc section
+ * Add debian/horizon-doc.doc-base
+
+ -- Daniil Trishkin <dtrishkin@mirantis.com> Fri, 03 Jul 2015 18:13:47 +0300
+
horizon (1:2015.1.0-1~u14.04+mos4) mos7.0; urgency=medium
* Compile l10n strings at post-install
python-mox,
python-netaddr (>= 0.7.12),
python-nose,
+ python-oslosphinx (>= 2.5.0),
python-pbr (>= 0.10),
python-setuptools,
- python-sphinx
+ python-sphinx (>= 1.1.2)
Standards-Version: 3.9.3
Homepage: http://launchpad.net/horizon
uses the Django-Nova project to provide web based interactions with the
OpenStack Nova cloud controller.
+Package: horizon-doc
+Architecture: all
+Section: doc
+Pre-Depends: dpkg (>= 1.15.6~)
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description:
+ The OpenStack Dashboard is a reference implementation of a Django site that
+ uses the Django-Nova project to provide web based interactions with the
+ OpenStack Nova cloud controller.
+ .
+ This package contains the documentation.
\ No newline at end of file
--- /dev/null
+Document: horizon-doc
+Title: Horizon Documentation
+Author: OpenStack
+Abstract: Sphinx documentation for Horizon
+Section: Network/File Transfer
+
+Format: HTML
+Index: /usr/share/doc/horizon-doc/html/index.html
+Files: /usr/share/doc/horizon-doc/html/*
\ No newline at end of file
#export DH_VERBOSE=1
%:
- dh $@ --with python2
+ dh $@ --with python2,sphinxdoc
PYVER=$(shell pyversions -d)
# Skip tests
:
endif
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ python setup.py build_sphinx
+ cp -rf doc/build/html $(CURDIR)/debian/horizon-doc/usr/share/doc/horizon-doc
+ dh_sphinxdoc -O--buildsystem=python_distutils
+endif
\ No newline at end of file