[Python-modules-commits] r31702 - in packages/python-hpilo/trunk/debian (3 files)
morph at users.alioth.debian.org
morph at users.alioth.debian.org
Wed Jan 28 13:41:58 UTC 2015
Date: Wednesday, January 28, 2015 @ 13:41:55
Author: morph
Revision: 31702
build and install documentation
Added:
packages/python-hpilo/trunk/debian/python-hpilo-doc.doc-base
Modified:
packages/python-hpilo/trunk/debian/control
packages/python-hpilo/trunk/debian/rules
Modified: packages/python-hpilo/trunk/debian/control
===================================================================
--- packages/python-hpilo/trunk/debian/control 2015-01-28 11:35:10 UTC (rev 31701)
+++ packages/python-hpilo/trunk/debian/control 2015-01-28 13:41:55 UTC (rev 31702)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Sandro Tosi <morph at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9.0.0), python, python3, dh-python
+Build-Depends: debhelper (>= 9.0.0), python, python3, dh-python, python-cloud-sptheme, python-sphinx
Standards-Version: 3.9.6
Homepage: https://github.com/seveas/python-hpilo
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-hpilo/trunk/
@@ -12,18 +12,30 @@
Package: python-hpilo
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-hpilo-doc
Description: HP iLO XML interface access from Python
This module will make it easy for you to access the Integrated Lights Out
management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO
3 and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.
-
Package: python3-hpilo
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}
+Suggests: python-hpilo-doc
Description: HP iLO XML interface access from Python (Python 3)
This module will make it easy for you to access the Integrated Lights Out
management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO
3 and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.
.
This package contains the Python 3 version of hpilo.
+
+Package: python-hpilo-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: HP iLO XML interface access from Python - Documentation
+ This module will make it easy for you to access the Integrated Lights Out
+ management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO
+ 3 and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.
+ .
+ This package contains the documentation for hpilo Python module.
Added: packages/python-hpilo/trunk/debian/python-hpilo-doc.doc-base
===================================================================
--- packages/python-hpilo/trunk/debian/python-hpilo-doc.doc-base (rev 0)
+++ packages/python-hpilo/trunk/debian/python-hpilo-doc.doc-base 2015-01-28 13:41:55 UTC (rev 31702)
@@ -0,0 +1,9 @@
+Document: python-hpilo-doc
+Title: Accessing HP iLO interfaces from Python
+Author: Dennis Kaarsemaker
+Abstract: This module will make it easy for you to access the Integrated Lights Out management interface of your HP hardware. It supports RILOE II, iLO, iLO 2, iLO 3 and iLO 4. It uses the XML interface or hponcfg to access and change the iLO.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-hpilo-doc/html/index.html
+Files: /usr/share/doc/python-hpilo-doc/html/*
Modified: packages/python-hpilo/trunk/debian/rules
===================================================================
--- packages/python-hpilo/trunk/debian/rules 2015-01-28 11:35:10 UTC (rev 31701)
+++ packages/python-hpilo/trunk/debian/rules 2015-01-28 13:41:55 UTC (rev 31702)
@@ -6,12 +6,22 @@
PKG2=python-hpilo
PKG3=python3-hpilo
+PKGD=python-hpilo-doc
%:
- dh $@ --with python2,python3
+ dh $@ --with python2,python3,sphinxdoc
+override_dh_auto_build:
+ dh_auto_build
+ $(MAKE) -C docs html
+
override_dh_install:
python setup.py install --root=$(CURDIR)/debian/$(PKG2)/ --install-layout=deb
python3 setup.py install --root=$(CURDIR)/debian/$(PKG3)/ --install-layout=deb
+
# remove extra binaries from PKG3
rm -rf $(CURDIR)/debian/$(PKG3)/usr/bin
+
+ # move generated doc in its own package
+ mkdir -p $(CURDIR)/debian/$(PKGD)/usr/share/doc/$(PKGD)
+ cp -arp docs/_build/html $(CURDIR)/debian/$(PKGD)/usr/share/doc/$(PKGD)
More information about the Python-modules-commits
mailing list