Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8D58D429E2C for ; Sun, 19 Jun 2011 12:54:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qEV3HJxQ7a4h for ; Sun, 19 Jun 2011 12:54:10 -0700 (PDT) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CC592431FB6 for ; Sun, 19 Jun 2011 12:54:09 -0700 (PDT) Received: from zancas.localnet (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net [142.167.176.81]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5JJs4be024280 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 19 Jun 2011 16:54:05 -0300 Received: from bremner by zancas.localnet with local (Exim 4.76) (envelope-from ) id 1QYO4K-00074v-My; Sun, 19 Jun 2011 16:54:04 -0300 From: david@tethera.net To: notmuch@notmuchmail.org Subject: [PATCH 1/2] Build debian package for python-bindings. Date: Sun, 19 Jun 2011 16:53:42 -0300 Message-Id: <1308513223-27163-2-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.7.5.3 In-Reply-To: <1308513223-27163-1-git-send-email-david@tethera.net> References: <1308507380-26896-1-git-send-email-david@tethera.net> <1308513223-27163-1-git-send-email-david@tethera.net> Cc: David Bremner X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jun 2011 19:54:10 -0000 From: David Bremner 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 are to avoid looping over python versions ourselves. --- debian/control | 17 ++++++++++++++++- debian/python-notmuch.install | 1 + debian/rules | 14 +++++++++++++- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 debian/python-notmuch.install diff --git a/debian/control b/debian/control index 3491e9a..fa5f762 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,9 @@ Section: mail Priority: extra Maintainer: Carl Worth Uploaders: Jameson Graef Rollins , martin f. krafft -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 @@ -49,3 +51,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 index 0000000..607c065 --- /dev/null +++ b/debian/python-notmuch.install @@ -0,0 +1 @@ +usr/lib/python* diff --git a/debian/rules b/debian/rules index a4b526c..7343ac2 100755 --- a/debian/rules +++ b/debian/rules @@ -1,11 +1,23 @@ #!/usr/bin/make -f %: - dh $@ + dh --with python2 $@ override_dh_auto_configure: 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: + 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 -- 1.7.5.3