[Python-modules-commits] [python-latexcodec] 02/04: build docs package

Daniel Stender stender at moszumanska.debian.org
Tue May 10 14:13:26 UTC 2016


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

stender pushed a commit to branch master
in repository python-latexcodec.

commit 7e228994563856518068b4761c75ced573aa503c
Author: Daniel Stender <stender at debian.org>
Date:   Tue May 10 15:42:58 2016 +0200

    build docs package
---
 debian/changelog                                   | 10 +++++++++-
 debian/control                                     | 22 ++++++++++++++++++++--
 ...dec.doc-base => python-latexcodec-doc.doc-base} |  6 +++---
 debian/rules                                       |  4 ++--
 4 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1cb248d..245bbc3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,16 @@
 python-latexcodec (1.0.3-2) UNRELEASED; urgency=medium
 
   * deb/control: corrected X-Python3-version.
+  * build docs package:
+    + added package description in deb/control.
+    + added Recommends to module package description in deb/control,
+      removed sphinxdoc:Depends.
+    + build HTML documentation into docs package in deb/rules.
+    + contribute CHANGELOG into both packages in deb/rules.
+    + renamed deb/python3-latexcodec.doc-base accordingly, updated
+      paths and Document field.
 
- -- Daniel Stender <stender at debian.org>  Tue, 10 May 2016 15:05:41 +0200
+ -- Daniel Stender <stender at debian.org>  Tue, 10 May 2016 15:42:42 +0200
 
 python-latexcodec (1.0.3-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index c36a644..67a188f 100644
--- a/debian/control
+++ b/debian/control
@@ -20,11 +20,29 @@ X-Python3-Version: >= 3.3
 Package: python3-latexcodec
 Architecture: all
 Depends: ${misc:Depends},
-         ${python3:Depends},
-         ${sphinxdoc:Depends}
+         ${python3:Depends}
+Recommends: python-latexcodec-doc
 Description: LaTeX lexer and codec library for Python
  latexcodec is a Python library for converting from and into
  LaTeX encoding. It includes a codec module which contains classes
  and functions for LaTeX code translation, and a module for lexing
  LaTeX code, which includes general purpose base classes for
  incremental LaTeX decoders and encoders.
+ .
+ This package contains the modules for Python 3.
+
+Package: python-latexcodec-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Recommends: python3-latexcodec
+Breaks: python3-latexcodec (= 1.0.3-1)
+Description: LaTeX lexer and codec library for Python (docs)
+ latexcodec is a Python library for converting from and into
+ LaTeX encoding. It includes a codec module which contains classes
+ and functions for LaTeX code translation, and a module for lexing
+ LaTeX code, which includes general purpose base classes for
+ incremental LaTeX decoders and encoders.
+ .
+ This package contains the documentation.
diff --git a/debian/python3-latexcodec.doc-base b/debian/python-latexcodec-doc.doc-base
similarity index 58%
rename from debian/python3-latexcodec.doc-base
rename to debian/python-latexcodec-doc.doc-base
index e5f7484..be58fcd 100644
--- a/debian/python3-latexcodec.doc-base
+++ b/debian/python-latexcodec-doc.doc-base
@@ -1,9 +1,9 @@
-Document: python3-latexcodec
+Document: python-latexcodec
 Title: latexcodec's documentation
 Author: Matthias C. M. Troffaes <matthias.troffaes at gmail.com>
 Abstract: latexcodec is a LaTeX lexer and codec library for Python
 Section: Programming/Python
 
 Format: HTML
-Index: /usr/share/doc/python3-latexcodec/html/index.html
-Files: /usr/share/doc/python3-latexcodec/html/*.html
+Index: /usr/share/doc/python-latexcodec-doc/html/index.html
+Files: /usr/share/doc/python-latexcodec-doc/html/*.html
diff --git a/debian/rules b/debian/rules
index 8879ccd..2084d21 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,7 @@ override_dh_auto_test:
 
 override_dh_installdocs:
 	dh_installdocs
-	PYTHONPATH=. sphinx-build -D today_fmt="$(DEBDATE)" -N -bhtml doc/ debian/python3-latexcodec/usr/share/doc/python3-latexcodec/html/
+	PYTHONPATH=. sphinx-build -D today_fmt="$(DEBDATE)" -N -bhtml doc/ debian/python-latexcodec-doc/usr/share/doc/python-latexcodec-doc/html/
 
 override_dh_installchangelogs:
-	dh_installchangelogs CHANGELOG.rst
+	dh_installchangelogs -A CHANGELOG.rst

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



More information about the Python-modules-commits mailing list