[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dh9: dh_python2 with dh_sphinxdoc: missing /usr/bin and /usr/lib in deb



Hi all,

I want to create a separate package tryton-modules-doc from the sphinx
documentation contained in tryton-server. 

The packages are building without error, but in the final deb of
the server package (tryton-server) the files for /usr/bin and /usr/lib are
missing. Inspecting debian/tryton-server after the build shows still the
directory tmp containing those missing files, apparently not being moved to
debian/tryton-server/usr.
The build log doesn't show anything unusual.

Someone has a clue for me? Anything wrong with the usage of dh_sphinxdoc?

In case this qualifies as bug, should I report against package python or
python-sphinx?



diff --git a/debian/control b/debian/control
index bc60dcf..f7f6ae7 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,9 @@ Section: python
 Priority: optional
 Maintainer: Debian Tryton Maintainers <maintainers@debian.tryton.org>
 Uploaders: Mathias Behrle <mathiasb@m9s.biz>
-Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools
+Build-Depends:
+ debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools,
+ python-sphinx (>= 1.0.7+dfsg)
 Standards-Version: 3.9.4
 Homepage: http://www.tryton.org/
 Vcs-Browser: http://debian.tryton.org/gitweb/?p=packages/tryton-server.git
@@ -28,3 +30,14 @@ Description: Tryton Application Platform (Server)
  business solution.
  .
  This package contains the server.
+
+Package: tryton-server-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Tryton Application Platform (Server Documentation)
+ Tryton is a high-level general purpose application platform written in Python
+ and using PostgreSQL as database engine. It is the core base of a complete
+ business solution.
+ .
+ This package contains the documentation of the server in HTML format.
diff --git a/debian/rules b/debian/rules
index d956c32..aeb14b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,17 @@
 #!/usr/bin/make -f
 
 %:
-	dh ${@} --with python2
+	dh ${@} --with python2,sphinxdoc
 
 override_dh_auto_clean:
 	dh_auto_clean
-
+	rm -rf build
 	rm -rf *.egg-info
 
+override_dh_installdocs:
+	sphinx-build doc build/html
+	dh_installdocs
+
 override_dh_builddeb:
 	dh_builddeb -- -Zxz -z9
 
diff --git a/debian/tryton-server-doc.doc-base
b/debian/tryton-server-doc.doc-base new file mode 100644
index 0000000..527ccba
--- /dev/null
+++ b/debian/tryton-server-doc.doc-base
@@ -0,0 +1,10 @@
+Document: tryton-server
+Title: Tryton Server Documentation
+Author: Tryton Project
+Abstract: This is documentation of tryton-server, which includes models
+ documentation, extension documentation and API reference.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/tryton-server-doc/html/index.html
+Files: /usr/share/doc/tryton-server-doc/html/*
diff --git a/debian/tryton-server-doc.docs b/debian/tryton-server-doc.docs
new file mode 100644
index 0000000..344fcaa
--- /dev/null
+++ b/debian/tryton-server-doc.docs
@@ -0,0 +1 @@
+build/html/



-- 

    Mathias Behrle
    MBSolutions
    Gilgenmatten 10 A
    D-79114 Freiburg

    Tel: +49(761)471023
    Fax: +49(761)4770816
    http://m9s.biz
    UStIdNr: DE 142009020
    PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6

Attachment: signature.asc
Description: PGP signature


Reply to: