[owslib] 05/11: Add rules for doc package

Johan Van de Wauw johanvdw-guest at moszumanska.debian.org
Thu Sep 24 20:32:12 UTC 2015


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

johanvdw-guest pushed a commit to branch master
in repository owslib.

commit 1d27a2b2e3e9f8d405fb2aa4054428b7218637d5
Author: Johan Van de Wauw <johan at vandewauw.be>
Date:   Mon Sep 14 22:48:20 2015 +0200

    Add rules for doc package
---
 debian/rules | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 0d280e2..a2b83d8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,16 @@
 
 export PYBUILD_NAME=owslib
 
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS   = -D today="$(BUILD_DATE)"
+export PYBUILD_AFTER_BUILD_python2 = cd docs;make html
+
 %:
-	dh  $@ --with python2,python3 --buildsystem pybuild
+	dh  $@ --with python2,python3,sphinxdoc --buildsystem pybuild
 
 override_dh_auto_test:
 #skipping tests as they require internet access
+
+override_dh_auto_clean:
+	rm -rf docs/build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/owslib.git



More information about the Pkg-grass-devel mailing list