From 8721808780b616620b89e1d23579d88095748b71 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Mon, 29 Apr 2013 04:52:36 +1900 Subject: [PATCH] [PATCH 6/8] packaging: fedora: package python bindings --- 93/5b09fa3732d22d00c18b9ab7a4c873e61cddd7 | 131 ++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 93/5b09fa3732d22d00c18b9ab7a4c873e61cddd7 diff --git a/93/5b09fa3732d22d00c18b9ab7a4c873e61cddd7 b/93/5b09fa3732d22d00c18b9ab7a4c873e61cddd7 new file mode 100644 index 000000000..c73dbb0b4 --- /dev/null +++ b/93/5b09fa3732d22d00c18b9ab7a4c873e61cddd7 @@ -0,0 +1,131 @@ +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 B1ED1431FC3 + for ; Sun, 28 Apr 2013 02:54:18 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 cIz13pbwsNeF for ; + Sun, 28 Apr 2013 02:54:17 -0700 (PDT) +Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com + [209.85.214.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 43F33431FDA + for ; Sun, 28 Apr 2013 02:54:11 -0700 (PDT) +Received: by mail-ob0-f174.google.com with SMTP id wc20so4711113obb.33 + for ; Sun, 28 Apr 2013 02:54:10 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to + :references; bh=yF30RlUR9DcBOeD0srVcoO7jzftuNDgjRacSqtoCmzs=; + b=mfstlfp8CuDx7NO2uN8mIvhOu1Zb3M319jQJRRsk8X0042ivBQ3HGWvpzAhGD7lSyw + CFfCJvWU/skt5+qBJ57jmPVODUpMuGgfpheyzWdrqY0iA9a768rpexfkr/7+UNtLeQi0 + pLKhuGtL886/+DjBWef2Ic5B16M7ucNVYSKwC5vhSmzGDenWhe5t3DiJBafvFH+jDoUz + GgR+TO195y5bi4D3YKeZz9UPqyYUPxE8u3wLzhBu4nqJXcaI2pwgn5NgsSVf1mHujZEl + UJ+qICHz0NPRa2wZ9sztYBRQ3zoWnBJYjmRXBzImlxowP408bo06F/khWbxLTOG8JxoR + 9qlg== +X-Received: by 10.60.147.166 with SMTP id tl6mr1282490oeb.12.1367142850704; + Sun, 28 Apr 2013 02:54:10 -0700 (PDT) +Received: from localhost (187-163-100-70.static.axtel.net. [187.163.100.70]) + by mx.google.com with ESMTPSA id jt9sm164725obc.0.2013.04.28.02.54.09 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 28 Apr 2013 02:54:09 -0700 (PDT) +From: Felipe Contreras +To: notmuch@notmuchmail.org +Subject: [PATCH 6/8] packaging: fedora: package python bindings +Date: Sun, 28 Apr 2013 04:52:36 -0500 +Message-Id: <1367142758-26120-7-git-send-email-felipe.contreras@gmail.com> +X-Mailer: git-send-email 1.8.2.1.1031.g2ee5873 +In-Reply-To: <1367142758-26120-1-git-send-email-felipe.contreras@gmail.com> +References: <1367142758-26120-1-git-send-email-felipe.contreras@gmail.com> +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, 28 Apr 2013 09:54:19 -0000 + +Like in Fedora. + +Signed-off-by: Felipe Contreras +--- + packaging/fedora/notmuch.spec | 24 +++++++++++++++++++++++- + 1 file changed, 23 insertions(+), 1 deletion(-) + +diff --git a/packaging/fedora/notmuch.spec b/packaging/fedora/notmuch.spec +index 1e6ec3b..bc0a58c 100644 +--- a/packaging/fedora/notmuch.spec ++++ b/packaging/fedora/notmuch.spec +@@ -26,7 +26,7 @@ URL: http://notmuchmail.org/ + Source0: http://notmuchmail.org/releases/notmuch-%{version}.tar.gz + + BuildRequires: xapian-core-devel gmime-devel libtalloc-devel +-BuildRequires: zlib-devel emacs-el emacs-nox ++BuildRequires: zlib-devel emacs-el emacs-nox python + + %description + Fast system for indexing, searching, and tagging email. Even if you +@@ -59,6 +59,15 @@ Requires: %{name} = %{version}-%{release}, emacs(bin) >= %{_emacs_version} + %description -n emacs-notmuch + %{summary}. + ++%package -n python-notmuch ++Summary: Python bindings for notmuch ++Group: Development/Libraries ++BuildArch: noarch ++Requires: %{name} = %{version}-%{release} ++ ++%description -n python-notmuch ++%{summary}. ++ + %prep + %setup -q + +@@ -67,9 +76,17 @@ Requires: %{name} = %{version}-%{release}, emacs(bin) >= %{_emacs_version} + --mandir=%{_mandir} --includedir=%{_includedir} --emacslispdir=%{_emacs_sitelispdir} + make %{?_smp_mflags} CFLAGS="%{optflags}" + ++pushd bindings/python ++ python setup.py build ++popd ++ + %install + make install DESTDIR=%{buildroot} + ++pushd bindings/python ++ python setup.py install -O1 --skip-build --root %{buildroot} ++popd ++ + %post -p /sbin/ldconfig + + %postun -p /sbin/ldconfig +@@ -89,6 +106,11 @@ make install DESTDIR=%{buildroot} + %files -n emacs-notmuch + %{_emacs_sitelispdir}/* + ++%files -n python-notmuch ++%doc bindings/python/README ++%{python_sitelib}/* ++ ++ + %changelog + * Sun Apr 28 2013 Felipe Contreras - 0.15.2-1 + - Update to latest upstream +-- +1.8.2.1.1031.g2ee5873 + -- 2.26.2