[Python-modules-commits] [python-gmpy2] 01/01: create -doc package

Martin Kelly aomighty-guest at moszumanska.debian.org
Mon Mar 6 04:27:21 UTC 2017


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

aomighty-guest pushed a commit to branch master
in repository python-gmpy2.

commit aaf1a822aacaf5979d95c4b71ede7e6df663e9f4
Author: Martin Kelly <martin at martingkelly.com>
Date:   Sun Mar 5 19:20:45 2017 -0800

    create -doc package
---
 debian/changelog                   |  3 ++-
 debian/control                     | 14 ++++++++++++++
 debian/python-gmpy2-doc.doc-base.1 |  8 ++++++++
 debian/python-gmpy2-doc.docs       |  1 +
 debian/rules                       |  2 +-
 5 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5200b28..4ed509c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,9 @@ python-gmpy2 (2.0.8-1) unstable; urgency=medium
   [ Martin Kelly ]
   * Corrected a few stale entries in copyright file (also fixes a lintian
     warning).
-  * Bumped policy version to 3.9.8.0 (no changes needed).
+  * Bumped policy version to 3.9.8.0
   * Use Multi-Arch: same for binary packages
+  * Create -doc package
 
   [ Ondřej Nový ]
   * Fixed VCS URL (https)
diff --git a/debian/control b/debian/control
index 8ca41a3..58241ff 100644
--- a/debian/control
+++ b/debian/control
@@ -49,3 +49,17 @@ Description: interfaces GMP to Python for fast, unbound-precision computations
  more.
  .
  This package installs files in common between python-gmpy2 and python3-gmpy2.
+
+Package: python-gmpy2-doc
+Architecture: all
+Multi-Arch: foreign
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: python-gmpy2 | python3-gmpy2
+Description: interfaces GMP to Python for fast, unbound-precision computations
+ gmpy is a C-coded Python extension module that wraps the GMP library to
+ provide to Python code fast multiprecision arithmetic (integer, rational, and
+ float), random number generation, advanced number-theoretical functions, and
+ more.
+ .
+ This package installs additional documentation for python-gmpy2 and
+ python3-gmpy2.
diff --git a/debian/python-gmpy2-doc.doc-base.1 b/debian/python-gmpy2-doc.doc-base.1
new file mode 100644
index 0000000..80e25eb
--- /dev/null
+++ b/debian/python-gmpy2-doc.doc-base.1
@@ -0,0 +1,8 @@
+Document: python-gmpy2-doc
+Title: python-gmpy2 Documentation
+Abstract: Interfaces GMP to Python 2 for fast, unbound-precision computations
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-gmpy2-doc/html/index.html
+Files: /usr/share/doc/python-gmpy2-doc/html/*.html
diff --git a/debian/python-gmpy2-doc.docs b/debian/python-gmpy2-doc.docs
new file mode 100644
index 0000000..4ecc793
--- /dev/null
+++ b/debian/python-gmpy2-doc.docs
@@ -0,0 +1 @@
+docs/_build/html
diff --git a/debian/rules b/debian/rules
index 38298c1..4a1f88d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,4 +11,4 @@ BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 override_dh_auto_build:
 	dh_auto_build
-	make man -C $(CURDIR)/docs SPHINXOPTS="-D today=\"$(BUILD_DATE)\""
+	make man html -C $(CURDIR)/docs SPHINXOPTS="-D today=\"$(BUILD_DATE)\""

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



More information about the Python-modules-commits mailing list