[Python-modules-commits] [python-prov] 05/14: Add support for the nodoc build profile

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 18 09:39:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository python-prov.

commit 308a8d1cd85c95638f67cfc3c48f8210e8ad755c
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Jul 18 09:28:28 2017 +0100

    Add support for the nodoc build profile
---
 debian/control | 9 ++++++---
 debian/rules   | 4 ++++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 11e7910..db9c1b5 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Section: python
 Priority: optional
 Build-Depends: debhelper (>= 10),
                dh-python,
+               dpkg-dev (>= 1.17.14),
                python-all,
                python-dateutil,
                python-lxml,
@@ -21,7 +22,8 @@ Build-Depends: debhelper (>= 10),
                python3-rdflib (>= 4.2.1),
                python3-setuptools,
                python3-six (>= 1.9.0),
-               python3-sphinx
+               python3-sphinx <!nodoc>,
+               sphinx-common
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-prov.git
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-prov.git
@@ -33,7 +35,7 @@ Package: python-prov
 Architecture: all
 Depends: ${misc:Depends},
          ${python:Depends}
-Suggests: python-prov-doc,
+Suggests: python-prov-doc <!nodoc>,
           python-pydotplus
 Description: W3C Provenance Data Model (Python 2)
  A library for W3C Provenance Data Model supporting PROV-JSON and PROV-
@@ -53,7 +55,7 @@ Package: python3-prov
 Architecture: all
 Depends: ${misc:Depends},
          ${python3:Depends}
-Suggests: python-prov-doc,
+Suggests: python-prov-doc <!nodoc>,
           python3-pydotplus
 Description: W3C Provenance Data Model (Python 3)
  A library for W3C Provenance Data Model supporting PROV-JSON and PROV-
@@ -87,6 +89,7 @@ Description: documentation for prov
     PNG, SVG).
  .
  This package provides the documentation for the prov library.
+Build-Profiles: <!nodoc>
 
 Package: prov-tools
 Architecture: all
diff --git a/debian/rules b/debian/rules
index 3a2242a..cf42e44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,13 +12,17 @@ export PYBUILD_AFTER_INSTALL_python2 = rm -rf {destdir}/usr/bin
 
 override_dh_auto_clean:
 	dh_auto_clean
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	$(MAKE) -C docs clean
+endif
 
 override_dh_auto_build: export http_proxy=127.0.0.1:9
 override_dh_auto_build: export https_proxy=127.0.0.1:9
 override_dh_auto_build:
 	dh_auto_build
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
+endif
 
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-prov.git



More information about the Python-modules-commits mailing list