[pyosmium] 05/05: Also build & install documentation.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Thu May 21 07:46:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository pyosmium.
commit a38fd93c1486a7bb61f3ec55d74a8c9470ce7b7a
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Wed May 20 22:31:51 2015 +0200
Also build & install documentation.
---
debian/control | 21 +++++++++++++++++++++
debian/pyosmium-doc.doc-base | 10 ++++++++++
debian/pyosmium-doc.docs | 1 +
debian/pyosmium-doc.links | 2 ++
debian/rules | 19 +++++++++++++++++++
5 files changed, 53 insertions(+)
diff --git a/debian/control b/debian/control
index 7d0797d..ac76428 100644
--- a/debian/control
+++ b/debian/control
@@ -22,6 +22,7 @@ Build-Depends: debhelper (>= 9),
python3-all-dev,
python3-setuptools,
python3-nose,
+ python3-sphinx,
zlib1g-dev
Standards-Version: 3.9.6
Vcs-Browser: http://anonscm.debian.org/cgit/pkg-grass/pyosmium.git/
@@ -35,6 +36,7 @@ Depends: ${python:Depends},
${shlibs:Depends},
${misc:Depends}
Provides: ${python:Provides}
+Suggests: pyosmium-doc
Description: Osmium library bindings for Python
The PyOsmium module allows you to access some of the features of the Osmium
library from Python code.
@@ -54,6 +56,7 @@ Depends: ${python3:Depends},
${shlibs:Depends},
${misc:Depends}
Provides: ${python3:Provides}
+Suggests: pyosmium-doc
Description: Osmium library bindings for Python 3
The PyOsmium module allows you to access some of the features of the Osmium
library from Python code.
@@ -66,3 +69,21 @@ Description: Osmium library bindings for Python 3
.
This package contains the PyOsmium module for Python 3.
+Package: pyosmium-doc
+Architecture: all
+Section: doc
+Depends: libjs-jquery,
+ libjs-underscore,
+ ${misc:Depends}
+Description: Osmium library bindings for Python - Documentation
+ The PyOsmium module allows you to access some of the features of the Osmium
+ library from Python code.
+ .
+ PyOsmium has extensive support for all types of OSM entities: nodes, ways,
+ relations, and changesets. It allows reading from OSM files in XML and PBF
+ formats, including change files and full history files. Its easy to use
+ handler interface allows you to quickly write data filtering and conversion
+ functions.
+ .
+ This package contains the PyOsmium documentation.
+
diff --git a/debian/pyosmium-doc.doc-base b/debian/pyosmium-doc.doc-base
new file mode 100644
index 0000000..78b443c
--- /dev/null
+++ b/debian/pyosmium-doc.doc-base
@@ -0,0 +1,10 @@
+Document: pyosmium
+Title: PyOsmium Documentation
+Author: Sarah Hoffmann
+Abstract: This manual describes what PyOsmium is
+ and how it can be used.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/pyosmium-doc/html/index.html
+Files: /usr/share/doc/pyosmium-doc/html/*
diff --git a/debian/pyosmium-doc.docs b/debian/pyosmium-doc.docs
new file mode 100644
index 0000000..7123782
--- /dev/null
+++ b/debian/pyosmium-doc.docs
@@ -0,0 +1 @@
+doc/_build/html
diff --git a/debian/pyosmium-doc.links b/debian/pyosmium-doc.links
new file mode 100644
index 0000000..06fc809
--- /dev/null
+++ b/debian/pyosmium-doc.links
@@ -0,0 +1,2 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/pyosmium-doc/html/_static/jquery.js
+usr/share/javascript/underscore/underscore.js usr/share/doc/pyosmium-doc/html/_static/underscore.js
diff --git a/debian/rules b/debian/rules
index feeae97..d588ab7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,26 @@ export PYBUILD_NAME=pyosmium
--with python2,python3
--parallel
+override_dh_clean:
+ dh_clean
+
+ $(RM) -r doc/_build
+
+override_dh_auto_build-indep:
+ dh_auto_build --indep
+
+ (cd doc && make html)
+
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="cd test && {interpreter} run_tests.py" dh_auto_test
+override_dh_install:
+ dh_install
+
+ # Remove embedded jquery.js in favor of libjs-jquery
+ $(RM) debian/*/usr/share/doc/*/html/_static/jquery.js
+
+ # Remove embedded underscore.js in favor of libjs-underscore
+ $(RM) debian/*/usr/share/doc/*/html/_static/underscore.js
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pyosmium.git
More information about the Pkg-grass-devel
mailing list