diff --git a/debian/changelog b/debian/changelog index 5db20b7..7583895 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ python-ceilometerclient (1.0.6-2) unstable; urgency=medium * Fixed subunit output. + * Added python-ceilometerclient man page. -- Thomas Goirand Sun, 16 Mar 2014 14:29:03 +0800 diff --git a/debian/patches/no-network-access-when-building-doc.patch b/debian/patches/no-network-access-when-building-doc.patch new file mode 100644 index 0000000..770c623 --- /dev/null +++ b/debian/patches/no-network-access-when-building-doc.patch @@ -0,0 +1,17 @@ +Description: No network access when building doc + Removes the use of sphinx.ext.intersphinx +Author: Thomas Goirand +Forwarded: no +Last-Update: 2014-03-16 + +--- python-ceilometerclient-1.0.6.orig/doc/source/conf.py ++++ python-ceilometerclient-1.0.6/doc/source/conf.py +@@ -10,7 +10,7 @@ project = 'python-ceilometerclient' + + # Add any Sphinx extension module names here, as strings. They can be + # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] ++extensions = ['sphinx.ext.autodoc'] + + # autodoc generation is a bit aggressive and a nuisance when doing heavy + # text edit cycles. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..702eb67 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +no-network-access-when-building-doc.patch diff --git a/debian/python-ceilometerclient.manpages b/debian/python-ceilometerclient.manpages new file mode 100644 index 0000000..3cdb8d5 --- /dev/null +++ b/debian/python-ceilometerclient.manpages @@ -0,0 +1 @@ +doc/man/python-ceilometerclient.1 diff --git a/debian/rules b/debian/rules index 451d1e9..55d5021 100755 --- a/debian/rules +++ b/debian/rules @@ -24,3 +24,9 @@ endif override_dh_clean: dh_clean -O--buildsystem=python_distutils rm -rf .testrepository + rm -rf doc/man + +override_dh_installman: +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + sphinx-build -b man doc/source doc/man +endif