[debian] build the book with no auto-compression of book files (closes: #1906581) stable
authorJulien Jehannet <julien.jehannet@logilab.fr>
Wed, 07 Sep 2011 11:37:41 +0200
branchstable
changeset 7767 07c74f5585d1
parent 7766 a832677c0aa6
child 7768 bd44f506ca86
[debian] build the book with no auto-compression of book files (closes: #1906581) Book content paths (html and rest) are now excluded from Debian compression step. This will fix a documentation search issue on the website (doc.cubicweb.org) Documentation build is now made optional since it can break for old distributions and we don't want to block a new release of Cubicweb because of documentation issues.
debian/control
debian/rules
--- a/debian/control	Wed Sep 07 16:56:27 2011 +0200
+++ b/debian/control	Wed Sep 07 11:37:41 2011 +0200
@@ -7,9 +7,9 @@
            Adrien Di Mascio <Adrien.DiMascio@logilab.fr>,
            Aurélien Campéas <aurelien.campeas@logilab.fr>,
            Nicolas Chauvat <nicolas.chauvat@logilab.fr>
-Build-Depends: debhelper (>= 7), python (>= 2.5), python-central (>= 0.5)
+Build-Depends: debhelper (>= 7), python (>= 2.5), python-central (>= 0.5), python-sphinx
 # for the documentation:
-# python-sphinx, python-logilab-common, python-unittest2,
+# python-sphinx, python-logilab-common, python-unittest2, logilab-doctools, logilab-xml
 Standards-Version: 3.9.1
 Homepage: http://www.cubicweb.org
 XS-Python-Version: >= 2.5, << 2.7
--- a/debian/rules	Wed Sep 07 16:56:27 2011 +0200
+++ b/debian/rules	Wed Sep 07 11:37:41 2011 +0200
@@ -10,14 +10,11 @@
 build: build-stamp
 build-stamp:
 	dh_testdir
-	# XXX doesn't work if logilab-doctools, logilab-xml are not in build depends
-	# and I can't get pbuilder find them in its chroot :(
-	# cd doc && make
-	# FIXME cleanup and use sphinx-build as build-depends ?
 	NO_SETUPTOOLS=1 python setup.py build
-	# XXX uncomment this and associated build-depends in control
-	#when necessary sphinx version is in all built distribution
-	#PYTHONPATH=$(CURDIR)/.. $(MAKE) -C doc/book/en all
+	# documentation build is now made optional since it can break for old
+	# distributions and we don't want to block a new release of Cubicweb
+	# because of documentation issues.
+	-PYTHONPATH=$(CURDIR)/.. $(MAKE) -C doc/book/en all
 	touch build-stamp
 
 clean:
@@ -73,7 +70,7 @@
 	dh_installman -i
 	dh_installchangelogs -i
 	dh_link -i
-	dh_compress -i -X.py -X.ini -X.xml
+	dh_compress -i -X.py -X.ini -X.xml -X.js -X.rst
 	dh_fixperms -i
 	dh_installdeb -i
 	dh_gencontrol  -i