From 09e27b08889c9694e38c5bd384424c31433039a3 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Thu, 5 Apr 2012 10:00:58 -0500 Subject: debian: Add bcfg2-doc package Signed-off-by: Sol Jerome --- debian/bcfg2-doc.links | 1 + debian/control | 13 +++++++++++-- debian/rules | 11 ++++++++--- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 debian/bcfg2-doc.links diff --git a/debian/bcfg2-doc.links b/debian/bcfg2-doc.links new file mode 100644 index 000000000..133a58e2e --- /dev/null +++ b/debian/bcfg2-doc.links @@ -0,0 +1 @@ +usr/share/doc/bcfg2/html/_sources usr/share/doc/bcfg2/rst diff --git a/debian/control b/debian/control index 63137dabf..5a2f8a09e 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: admin Priority: optional Maintainer: Arto Jantunen Uploaders: Sami Haahtinen -Build-Depends: debhelper (>= 7.0.50~), python (>= 2.3.5-7), python-setuptools +Build-Depends: debhelper (>= 7.0.50~), python (>= 2.3.5-7), python-setuptools, python-sphinx Build-Depends-Indep: python-support (>= 0.5.3) Standards-Version: 3.8.0.0 XS-Python-Version: >= 2.3 @@ -24,7 +24,7 @@ Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-lxml (>= 0.9), libxml2-utils (>= 2.6.23), lsb-base (>= 3.1-9), ucf, bcfg2 (= ${binary:Version}), openssl, python-ssl | python2.6 | python3.0 | python3.1 | python3.2, python-gamin XB-Python-Version: >= 2.4 Recommends: graphviz, patch -Suggests: python-cheetah, python-genshi (>= 0.4.4), python-profiler, python-sqlalchemy (>= 0.5.0), python-django, mail-transport-agent +Suggests: python-cheetah, python-genshi (>= 0.4.4), python-profiler, python-sqlalchemy (>= 0.5.0), python-django, mail-transport-agent, bcfg2-doc (= ${binary:Version}) Description: Configuration management server Bcfg2 is a configuration management system that generates configuration sets for clients bound by client profiles. @@ -40,3 +40,12 @@ Description: Configuration management web interface Bcfg2 is a configuration management system that generates configuration sets for clients bound by client profiles. bcfg2-web is the reporting server for bcfg2. + +Package: bcfg2-doc +Architecture: all +Depends: ${sphinxdoc:Depends}, ${misc:Depends} +XB-Python-Version: >= 2.4 +Description: Configuration management system documentation + Bcfg2 is a configuration management system that generates configuration sets + for clients bound by client profiles. + bcfg2-doc is the documentation for bcfg2. diff --git a/debian/rules b/debian/rules index 1638b8415..30fd64a43 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,7 @@ #!/usr/bin/make -f -WSGI_LOC = $(shell find debian/bcfg2-server/ -name reports.wsgi | perl -p -e 's|debian/bcfg2-server||') - %: - dh --with python-support $@ + dh $@ --with python-support,sphinxdoc override_dh_auto_install: # Make the build destination dir consistent between pre-7.3 and 7.3 and @@ -18,3 +16,10 @@ override_dh_installinit: # Install bcfg2-server initscript without starting it on postinst dh_installinit --package=bcfg2-server --no-start +override_dh_installdocs: + python setup.py build_sphinx + dh_installdocs build/sphinx/html + +override_dh_auto_clean: + dh_auto_clean + rm -rf build -- cgit v1.2.3-1-g7c22