From 56ad9c8f8301d4d06dd773f267ba834d02f40cb5 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 17 Jan 2013 08:44:21 +2000 Subject: [PATCH] [PATCH 4/5] debian: add python 3 bindings --- 9a/ff83ca9993056d0f0e84a7e66397240660a1ba | 154 ++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 9a/ff83ca9993056d0f0e84a7e66397240660a1ba diff --git a/9a/ff83ca9993056d0f0e84a7e66397240660a1ba b/9a/ff83ca9993056d0f0e84a7e66397240660a1ba new file mode 100644 index 000000000..040ff3ea3 --- /dev/null +++ b/9a/ff83ca9993056d0f0e84a7e66397240660a1ba @@ -0,0 +1,154 @@ +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 AD9C3431FDB + for ; Wed, 16 Jan 2013 04:44:48 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 3VMrQrwkdFVh for ; + Wed, 16 Jan 2013 04:44:47 -0800 (PST) +Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 1189A431FD5 + for ; Wed, 16 Jan 2013 04:44:44 -0800 (PST) +Received: from fctnnbsc30w-156034082078.dhcp-dynamic.fibreop.nb.bellaliant.net + ([156.34.82.78] helo=zancas.localnet) + by tesseract.cs.unb.ca with esmtpsa + (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) + (envelope-from ) + id 1TvSMC-0002S2-NX; Wed, 16 Jan 2013 08:44:42 -0400 +Received: from bremner by zancas.localnet with local (Exim 4.80) + (envelope-from ) + id 1TvSM7-0004I1-69; Wed, 16 Jan 2013 08:44:35 -0400 +From: david@tethera.net +To: notmuch@notmuchmail.org +Subject: [PATCH 4/5] debian: add python 3 bindings +Date: Wed, 16 Jan 2013 08:44:21 -0400 +Message-Id: <1358340262-16304-5-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1358340262-16304-1-git-send-email-david@tethera.net> +References: <1358340262-16304-1-git-send-email-david@tethera.net> +X-Spam_bar: - +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: Wed, 16 Jan 2013 12:44:49 -0000 + +From: David Bremner + +This patch is due to Jakub Wilk . + +It does add a build depend on python3 for people using the "make +debian-snapshot" target. +--- + debian/changelog | 4 +++- + debian/control | 14 ++++++++++++++ + debian/python-notmuch.install | 2 +- + debian/rules | 5 +++++ + 4 files changed, 23 insertions(+), 2 deletions(-) + +diff --git a/debian/changelog b/debian/changelog +index f4925a1..40b7695 100644 +--- a/debian/changelog ++++ b/debian/changelog +@@ -4,8 +4,10 @@ notmuch (0.15~rc1-1) experimental; urgency=low + * Change priority to optional (Closes: #687217). + * Remove Dm-Upload-Allowed field, as this is no longer used by + Debian. ++ * Add python3 bindings, thanks to Jakub Wilk (Closes: ++ #683515). + +- -- David Bremner Mon, 07 Jan 2013 21:40:52 -0400 ++ -- David Bremner Wed, 16 Jan 2013 08:25:02 -0400 + + notmuch (0.14-1) experimental; urgency=low + +diff --git a/debian/control b/debian/control +index 75b55a5..5bb0d05 100644 +--- a/debian/control ++++ b/debian/control +@@ -14,6 +14,7 @@ Build-Depends: + libtalloc-dev, + libz-dev, + python-all (>= 2.6.6-3~), ++ python3-all (>= 3.1.2-7~), + emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~) | + emacs24-nox | emacs24 (>=24~) | emacs24-lucid (>=24~), + gdb, +@@ -75,6 +76,19 @@ Description: python interface to the notmuch mail search and index library + This package provides a Python interface to the notmuch + functionality, directly interfacing with a shared notmuch library. + ++Package: python3-notmuch ++Architecture: all ++Section: python ++Depends: ${misc:Depends}, ${python3:Depends}, libnotmuch3 ++Description: Python 3 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 3 interface to the notmuch ++ functionality, directly interfacing with a shared notmuch library. ++ + Package: notmuch-emacs + Architecture: all + Section: mail +diff --git a/debian/python-notmuch.install b/debian/python-notmuch.install +index 607c065..b2cc136 100644 +--- a/debian/python-notmuch.install ++++ b/debian/python-notmuch.install +@@ -1 +1 @@ +-usr/lib/python* ++usr/lib/python2* +diff --git a/debian/rules b/debian/rules +index 8e30353..45e970a 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -1,5 +1,7 @@ + #!/usr/bin/make -f + ++python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {} ++ + %: + dh $@ --with python2 + +@@ -9,13 +11,16 @@ override_dh_auto_configure: + override_dh_auto_build: + dh_auto_build + dh_auto_build --sourcedirectory bindings/python ++ cd bindings/python && $(python3_all) setup.py build + $(MAKE) -C contrib/notmuch-mutt + + override_dh_auto_clean: + dh_auto_clean + dh_auto_clean --sourcedirectory bindings/python ++ cd bindings/python && $(python3_all) setup.py clean -a + $(MAKE) -C contrib/notmuch-mutt clean + + override_dh_auto_install: + dh_auto_install + dh_auto_install --sourcedirectory bindings/python ++ cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp +-- +1.7.10.4 + -- 2.26.2