aboutsummaryrefslogtreecommitdiffhomepage
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Felipe Contreras <felipe.contreras@gmail.com>2013-04-28 04:52:36 -0500
committerGravatar David Bremner <bremner@debian.org>2013-06-02 08:03:28 -0300
commit13a06c0d431961aea18ee8174f02d350fe7fded6 (patch)
tree602b255264c8adb323b992518180ee7ed5d537a0 /packaging
parentde668cffd73b1c3d2de58dc7cb9b8d8b6aee22fd (diff)
packaging: fedora: package python bindings
Like in Fedora. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/fedora/notmuch.spec24
1 files changed, 23 insertions, 1 deletions
diff --git a/packaging/fedora/notmuch.spec b/packaging/fedora/notmuch.spec
index 1e6ec3ba..bc0a58cc 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 <felipe.contreras@gmail.com> - 0.15.2-1
- Update to latest upstream