[pywps] 22/26: Build & install documentation.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri May 13 23:05:46 UTC 2016


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

sebastic pushed a commit to branch master
in repository pywps.

commit 7591ef5b548d8d6ea87ec3ab8a5c3609eeb0f698
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri May 13 22:21:17 2016 +0200

    Build & install documentation.
---
 debian/changelog          |  1 +
 debian/control            | 16 +++++++++++++++-
 debian/pywps-doc.doc-base | 10 ++++++++++
 debian/pywps-doc.install  |  1 +
 debian/pywps.doc-base     | 16 ----------------
 debian/rules              |  9 ++++++++-
 6 files changed, 35 insertions(+), 18 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dc50a6c..238dca4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ pywps (3.2.5-1) UNRELEASED; urgency=medium
     - Update python-pywps Suggests to use grass-core instead of grass
     - Add cgi-mapserver to pywps Suggests
   * Install pywps manpage.
+  * Build & install documentation.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 13 May 2016 19:33:40 +0200
 
diff --git a/debian/control b/debian/control
index 6d95409..54591b2 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends: debhelper (>= 9),
                python-all,
                python-gdal,
                python-setuptools,
+               python-sphinx,
                python-lxml
 Standards-Version: 3.9.5
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/pywps.git
@@ -37,7 +38,8 @@ Depends: python-pywps (= ${binary:Version}),
          ${python:Depends},
          ${misc:Depends}
 Suggests: apache2 | httpd-cgi,
-          cgi-mapserver
+          cgi-mapserver,
+          pywps-doc
 Description: Implementation of OGC's Web Processing Service
  PyWPS is implementation of Web Processing Service from Open
  Geospatial Consortium Inc.(R) with help of  Python Programming
@@ -45,3 +47,15 @@ Description: Implementation of OGC's Web Processing Service
  .
  This package contains the pywps executable & wps.py CGI script.
 
+Package: pywps-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends},
+         ${misc:Depends}
+Description: Implementation of OGC's Web Processing Service - Documentation
+ PyWPS is implementation of Web Processing Service from Open
+ Geospatial Consortium Inc.(R) with help of  Python Programming
+ Language and GIS GRASS as working tool in background.
+ .
+ This package contains the pywps documentation.
+
diff --git a/debian/pywps-doc.doc-base b/debian/pywps-doc.doc-base
new file mode 100644
index 0000000..9c80475
--- /dev/null
+++ b/debian/pywps-doc.doc-base
@@ -0,0 +1,10 @@
+Document: pywps
+Title: PyWPS Documentation
+Author: Jáchym Čepický <jachym at les-ejk.cz>
+Abstract: This manual describes what PyWPS is and how it can be setup,
+ and how to add your own processes to it.
+Section: Science/Geoscience
+
+Format: HTML
+Index: /usr/share/doc/pywps/html/index.html
+Files: /usr/share/doc/pywps/html/*.html
diff --git a/debian/pywps-doc.install b/debian/pywps-doc.install
new file mode 100644
index 0000000..c4b0673
--- /dev/null
+++ b/debian/pywps-doc.install
@@ -0,0 +1 @@
+doc/build/html usr/share/doc/pywps/
diff --git a/debian/pywps.doc-base b/debian/pywps.doc-base
deleted file mode 100644
index 86a8c30..0000000
--- a/debian/pywps.doc-base
+++ /dev/null
@@ -1,16 +0,0 @@
-Document: pywps
-Title: Install and Setup PyWPS
-Author: Jachym Cepicky <jachym at les-ejk.cz>
-Abstract: This manual describes what pywps is
- and how it can be installed, setuped and how to 
- add your own processes to it.
-Section: web
-
-Format: PDF
-Files: /usr/share/doc/pywps/install.pdf
-
-Format: text
-Files: /usr/share/doc/pywps/intall.txt
-
-Format: HTML
-Index: /usr/share/doc/pywps/html/install.html
diff --git a/debian/rules b/debian/rules
index 21a4a1c..2ee434b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,11 +13,18 @@
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
 
 %:
-	dh $@ --with python2 --buildsystem=pybuild --parallel
+	dh $@ --with python2,sphinxdoc --buildsystem=pybuild --parallel
 
 override_dh_clean:
 	dh_clean pywps/Templates/*/*.tmplc
 
+	$(RM) -r doc/build/
+
+override_dh_auto_build:
+	dh_auto_build
+
+	(cd doc && $(MAKE) html)
+
 override_dh_auto_install:
 	dh_auto_install
 

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



More information about the Pkg-grass-devel mailing list