mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
packaging: fedora: package python bindings
Like in Fedora. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
de668cffd7
commit
13a06c0d43
1 changed files with 23 additions and 1 deletions
|
@ -26,7 +26,7 @@ URL: http://notmuchmail.org/
|
||||||
Source0: http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
|
Source0: http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: xapian-core-devel gmime-devel libtalloc-devel
|
BuildRequires: xapian-core-devel gmime-devel libtalloc-devel
|
||||||
BuildRequires: zlib-devel emacs-el emacs-nox
|
BuildRequires: zlib-devel emacs-el emacs-nox python
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Fast system for indexing, searching, and tagging email. Even if you
|
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
|
%description -n emacs-notmuch
|
||||||
%{summary}.
|
%{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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
@ -67,9 +76,17 @@ Requires: %{name} = %{version}-%{release}, emacs(bin) >= %{_emacs_version}
|
||||||
--mandir=%{_mandir} --includedir=%{_includedir} --emacslispdir=%{_emacs_sitelispdir}
|
--mandir=%{_mandir} --includedir=%{_includedir} --emacslispdir=%{_emacs_sitelispdir}
|
||||||
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
||||||
|
|
||||||
|
pushd bindings/python
|
||||||
|
python setup.py build
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
pushd bindings/python
|
||||||
|
python setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
|
popd
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
@ -89,6 +106,11 @@ make install DESTDIR=%{buildroot}
|
||||||
%files -n emacs-notmuch
|
%files -n emacs-notmuch
|
||||||
%{_emacs_sitelispdir}/*
|
%{_emacs_sitelispdir}/*
|
||||||
|
|
||||||
|
%files -n python-notmuch
|
||||||
|
%doc bindings/python/README
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Apr 28 2013 Felipe Contreras <felipe.contreras@gmail.com> - 0.15.2-1
|
* Sun Apr 28 2013 Felipe Contreras <felipe.contreras@gmail.com> - 0.15.2-1
|
||||||
- Update to latest upstream
|
- Update to latest upstream
|
||||||
|
|
Loading…
Reference in a new issue