Added support for DEB_BUILD_OPTIONS=nodocs.

This commit is contained in:
Thomas Goirand 2015-11-27 15:05:10 +01:00
parent 36c6126007
commit 78d34c4375
2 changed files with 3 additions and 0 deletions

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ python-os-client-config (1.12.0-1) UNRELEASED; urgency=medium
* New upstream release.
* Fixed (build-)depends for this release.
* Added support for DEB_BUILD_OPTIONS=nodocs.
-- Thomas Goirand <zigo@debian.org> Fri, 27 Nov 2015 12:15:09 +0100

2
debian/rules vendored
View File

@ -43,8 +43,10 @@ override_dh_clean:
rm -rf build .testrepository
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
sphinx-build -b html doc/source debian/python-os-client-config-doc/usr/share/doc/python-os-client-config-doc/html
dh_sphinxdoc -O--buildsystem=python_distutils
endif
# Commands not to run
override_dh_installcatalogs: