From 0fdc28cd6bfb3aacc3594e8ff471258786f0de02 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 19 Jun 2011 15:09:46 -0300 Subject: debian: build package for python-bindings. This uses dh_python2 (included with sufficiently recent versions of the python/python-all packages). python-all brings in all of the supported versions of python. The double calls to dh_auto_install and friends are to avoid looping over python versions ourselves. --- debian/rules | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index f7be2ca9..9ac190ea 100755 --- a/debian/rules +++ b/debian/rules @@ -3,16 +3,26 @@ VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version:\([^-]*\)/\1/p') %: - dh $@ + dh --with python2 $@ override_dh_auto_configure: cp version debian/version.pre-build echo $(VERSION) > version dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch +override_dh_auto_build: + dh_auto_build + dh_auto_build --sourcedirectory bindings/python + override_dh_auto_clean: -mv debian/version.pre-build version dh_auto_clean + dh_auto_clean --sourcedirectory bindings/python + +override_dh_auto_install: + dh_auto_install + dh_auto_install --sourcedirectory bindings/python + override_dh_installdocs: dh_installdocs install -m644 vim/README debian/notmuch/usr/share/doc/notmuch/README.vim -- cgit v1.2.3