debian: build package for python-bindings.
authorDavid Bremner <bremner@debian.org>
Sun, 19 Jun 2011 18:09:46 +0000 (15:09 -0300)
committerDavid Bremner <bremner@debian.org>
Thu, 23 Jun 2011 10:13:32 +0000 (07:13 -0300)
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/control
debian/python-notmuch.install [new file with mode: 0644]
debian/rules

index f0d3f369a1aab7de4fcfa037678b148e273a526c..9ae255b87a31376fdb2b05bc827d9acdc6f86af2 100644 (file)
@@ -4,7 +4,9 @@ Priority: extra
 Maintainer: Carl Worth <cworth@debian.org>
 Uploaders: Jameson Graef Rollins <jrollins@finestructure.net>, martin f. krafft <madduck@debian.org>, 
           David Bremner <bremner@debian.org>
-Build-Depends: debhelper (>= 7.0.50~), pkg-config, libxapian-dev, libgmime-2.4-dev, libtalloc-dev, libz-dev, emacs (>= 23~)
+Build-Depends: debhelper (>= 7.0.50~), pkg-config, libxapian-dev, 
+ libgmime-2.4-dev, libtalloc-dev, libz-dev, emacs (>= 23~), 
+ python-all (>= 2.6.6-3~)
 Standards-Version: 3.9.1.0
 Homepage: http://notmuchmail.org/
 Vcs-Git: git://notmuchmail.org/git/notmuch
@@ -50,3 +52,16 @@ Description: thread-based email index, search and tagging (development)
  .
  This package provides the necessary development libraries and header
  files to allow you to develop new software using libnotmuch.
+
+Package: python-notmuch
+Architecture: all
+Section: python
+Depends: ${misc:Depends}, ${python:Depends}, libnotmuch1
+Description: python interface to the notmuch mail search and index library
+ Notmuch is a system for indexing, searching, reading, and tagging
+ large collections of email messages in maildir or mh format. It uses
+ the Xapian library to provide fast, full-text search with a very
+ convenient search syntax.
+ .
+ This package provides a Python interface to the notmuch
+ functionality, directly interfacing with a shared notmuch library.
diff --git a/debian/python-notmuch.install b/debian/python-notmuch.install
new file mode 100644 (file)
index 0000000..607c065
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/python*
index f7be2ca9ff8ebbf1bdf3e4865b800f3da6522860..9ac190ead6246c875981c2e65f43cdf25755b1eb 100755 (executable)
@@ -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