[mapproxy] 13/28: Add separate package for Sphinx documentation.

Bas Couwenberg sebastic at debian.org
Wed Jul 27 00:32:57 UTC 2016


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

sebastic pushed a commit to branch master
in repository mapproxy.

commit d02eda77bc68bc8f0bc3bfae7a879c36530433e1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Jul 26 03:01:55 2016 +0200

    Add separate package for Sphinx documentation.
---
 debian/changelog             |  1 +
 debian/control               | 20 ++++++++++++++++++++
 debian/mapproxy-doc.doc-base |  9 +++++++++
 debian/mapproxy-doc.install  |  1 +
 debian/rules                 | 12 +++++++++++-
 5 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 8a3f03b..31f46c6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ mapproxy (1.8.2-1) UNRELEASED; urgency=medium
     - Add pyton{,3}-{lxml,nose,requests,shapely,webtest,yaml} to Build-Depends
     - Add patch to skip tests that require network
   * Install commandline utilities in separate package.
+  * Add separate package for Sphinx documentation.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 25 Jul 2016 18:53:14 +0200
 
diff --git a/debian/control b/debian/control
index f0cd1d2..faa09b8 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,8 @@ Build-Depends: debhelper (>= 9),
                python-requests,
                python-setuptools,
                python-shapely,
+               python-sphinx,
+               python-sphinx-bootstrap-theme,
                python-webtest,
                python-yaml,
                python3-all,
@@ -25,6 +27,8 @@ Build-Depends: debhelper (>= 9),
                python3-requests,
                python3-setuptools,
                python3-shapely,
+               python3-sphinx,
+               python3-sphinx-bootstrap-theme,
                python3-webtest,
                python3-yaml
 Standards-Version: 3.9.6
@@ -38,6 +42,7 @@ Architecture: all
 Section: web
 Depends: python-mapproxy (= ${binary:Version}),
          ${misc:Depends}
+Suggests: mapproxy-doc
 Breaks: python-mapproxy (<< 1.8.2-1~)
 Replaces: python-mapproxy (<< 1.8.2-1~)
 Description: open source proxy for geospatial data
@@ -98,3 +103,18 @@ Description: open source proxy for geospatial data - Python 3 module
  .
  This package provides the mapproxy module for Python 3.
 
+Package: mapproxy-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends},
+         ${misc:Depends}
+Description: open source proxy for geospatial data - documentation
+ MapProxy is an open source proxy for geospatial data. It caches, accelerates
+ and transforms data from existing map services and serves any desktop or web
+ GIS client.
+ .
+ MapProxy is a tile server (WMS-C, TMS, WMTS, KML SuperOverlays), and also a
+ fully compliant WMS server supporting any WMS client (desktop and web).
+ .
+ This package provides the MapProxy documentation.
+
diff --git a/debian/mapproxy-doc.doc-base b/debian/mapproxy-doc.doc-base
new file mode 100644
index 0000000..65cc08b
--- /dev/null
+++ b/debian/mapproxy-doc.doc-base
@@ -0,0 +1,9 @@
+Document: mapproxy
+Title: MapProxy Documentation
+Author: Oliver Tonnhofer, Omniscale
+Abstract: This manual describes what MapProxy is and how use it.
+Section: Science/Geoscience
+
+Format: HTML
+Index: /usr/share/doc/mapproxy/html/index.html
+Files: /usr/share/doc/mapproxy/html/*.html
diff --git a/debian/mapproxy-doc.install b/debian/mapproxy-doc.install
new file mode 100644
index 0000000..19e0062
--- /dev/null
+++ b/debian/mapproxy-doc.install
@@ -0,0 +1 @@
+doc/_build/html usr/share/doc/mapproxy/
diff --git a/debian/rules b/debian/rules
index 858a907..bf1307c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,17 @@
 export PYBUILD_NAME=mapproxy
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_clean:
+	dh_auto_clean
+
+	$(RM) -r doc/_build/
+
+override_dh_auto_build:
+	dh_auto_build
+
+	(cd doc && PYTHONPATH=$(CURDIR) $(MAKE) html)
 
 override_dh_auto_test:
 	OFFLINE_TESTS=1 dh_auto_test || echo "Ignoring test failures"

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



More information about the Pkg-grass-devel mailing list