[PATCH 5/8] packaging: fedora: separate package for emacs

Felipe Contreras felipe.contreras at gmail.com
Sun Apr 28 02:52:35 PDT 2013


Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 packaging/fedora/notmuch.spec | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/packaging/fedora/notmuch.spec b/packaging/fedora/notmuch.spec
index f5272db..1e6ec3b 100644
--- a/packaging/fedora/notmuch.spec
+++ b/packaging/fedora/notmuch.spec
@@ -28,8 +28,6 @@ Source0:        http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
 BuildRequires:  xapian-core-devel gmime-devel libtalloc-devel
 BuildRequires:  zlib-devel emacs-el emacs-nox
 
-Requires:       emacs(bin) >= %{_emacs_version}
-
 %description
 Fast system for indexing, searching, and tagging email.  Even if you
 receive 12000 messages per month or have on the order of millions of
@@ -52,6 +50,15 @@ Requires:       %{name} = %{version}-%{release}
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
+%package -n emacs-notmuch
+Summary:        Not much support for Emacs
+Group:          Applications/Editors
+BuildArch:      noarch
+Requires:       %{name} = %{version}-%{release}, emacs(bin) >= %{_emacs_version}
+
+%description -n emacs-notmuch
+%{summary}.
+
 %prep
 %setup -q
 
@@ -75,12 +82,13 @@ make install DESTDIR=%{buildroot}
 %{_mandir}/man?/*
 %{_libdir}/libnotmuch.so.3*
 
-%{_emacs_sitelispdir}/*
-
 %files devel
 %{_libdir}/libnotmuch.so
 %{_includedir}/*
 
+%files -n emacs-notmuch
+%{_emacs_sitelispdir}/*
+
 %changelog
 * Sun Apr 28 2013 Felipe Contreras <felipe.contreras at gmail.com> - 0.15.2-1
 - Update to latest upstream
-- 
1.8.2.1.1031.g2ee5873



More information about the notmuch mailing list