tags 488258 +patch
thanks

Heyho!

Would you consider the attached patch -- against 2.2.2-2 -- please?

While I verified that the documentation builds with epydoc and html5lib 
included with Debian, I think it's unnecessary to bloat the build 
dependencies since the html is actually included in the upstream tar.  (I 
guess you build without cython for similar reasons?)

Also, the patch removes the documentation source and helper scripts from the 
binary package.  For a better transition, perhaps recommend the -doc instead 
of suggesting it?  Though, honestly, I find the documentation source barely 
readable.

Thanks & cheers
-- vbi

-- 
The prablem with Manoca is thot it's difficult ta tell the difference
between o cauple af the letters.
        -- Jacob W. Haller on alt.religion.kibology
diff -u lxml-2.2.2/debian/changelog lxml-2.2.2/debian/changelog
--- lxml-2.2.2/debian/changelog
+++ lxml-2.2.2/debian/changelog
@@ -1,3 +1,10 @@
+lxml (2.2.2-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added -doc package
+
+ -- Adrian von Bidder <c...@debian.org>  Mon, 19 Oct 2009 18:16:24 +0200
+
 lxml (2.2.2-2) unstable; urgency=low
 
   * Call setup.py install with --install-layout=deb. Closes: #547831.
diff -u lxml-2.2.2/debian/rules lxml-2.2.2/debian/rules
--- lxml-2.2.2/debian/rules
+++ lxml-2.2.2/debian/rules
@@ -37,7 +37,7 @@
 	-find -name '*.py[co]' | xargs rm -f
 	dh_clean 
 
-install: build install-prereq $(PYVERS:%=install-python%) $(PYVERS:%=dbg-install-python%)
+install: build install-prereq $(PYVERS:%=install-python%) $(PYVERS:%=dbg-install-python%) doc-install
 	-find debian -name '*.py[co]' | xargs rm -f
 
 install-prereq:
@@ -59,6 +59,11 @@
 	find debian/python-*-dbg ! -type d ! -name '*.so' | xargs rm -f
 	find debian/python-*-dbg -depth -empty -exec rmdir {} \;
 
+# Just install the pre-built html files from the tarball.
+doc-install:
+	mkdir -p debian/python-lxml-doc/usr/share/doc/python-lxml-doc
+	cp -r doc/html debian/python-lxml-doc/usr/share/doc/python-lxml-doc/
+
 # Build architecture-independent files here.
 binary-indep: build install
 # nothing to do
@@ -68,13 +73,13 @@
 	dh_testdir
 	dh_testroot
 	dh_installchangelogs -a CHANGES.txt
-	dh_installdocs -a \
-		CREDITS.txt README.txt TODO.txt doc/*.*
+	dh_installdocs -a CREDITS.txt README.txt TODO.txt
 	dh_installexamples -a samples/*
 	dh_strip -ppython-lxml --dbg-package=python-lxml-dbg
 	rm -rf debian/python-lxml-dbg/usr/share/doc/python-lxml-dbg
 	ln -s python-lxml debian/python-lxml-dbg/usr/share/doc/python-lxml-dbg
-	dh_compress -a -X.xml -X.py
+	dh_compress -a -X.xml -X.py \
+	    -X.html -X.css -X.asc -X.png -Xapi-objects.txt
 	dh_fixperms -a
 	dh_pycentral -a
 	dh_installdeb -a
diff -u lxml-2.2.2/debian/control lxml-2.2.2/debian/control
--- lxml-2.2.2/debian/control
+++ lxml-2.2.2/debian/control
@@ -41,0 +42,11 @@
+
+Package: python-lxml-doc
+Priority: extra
+Section: doc
+Architecture: any
+Recommends: python-lxml
+Description: pythonic binding for the libxml2 and libxslt libraries (documentation)
+ lxml is a new Python binding for libxml2 and libxslt, completely
+ independent from these existing Python bindings.
+ .
+ This package contains the html documentation.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to