%if %($(pkg-config emacs) ; echo $?) %global emacs_version 23.1 %global emacs_lispdir %{_datadir}/emacs/site-lisp %global emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d %else %global emacs_version %(pkg-config emacs --modversion) %global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir) %global emacs_startdir %(pkg-config emacs --variable sitestartdir) %endif Name: notmuch Version: 0.5 Release: 1%{?dist} Summary: System for indexing, searching, and tagging email Group: Applications/Internet License: GPLv3+ URL: http://notmuchmail.org/ Source0: http://notmuchmail.org/releases/notmuch-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: xapian-core-devel BuildRequires: gmime-devel BuildRequires: libtalloc-devel BuildRequires: zlib-devel BuildRequires: emacs-el BuildRequires: emacs-nox %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 messages that you've been saving for decades, Notmuch will be able to quickly search all of it. Notmuch is not much of an email program. It doesn't receive messages (no POP or IMAP support). It doesn't send messages (no mail composer, no network code at all). And for what it does do (email search) that work is provided by an external library, Xapian. So if Notmuch provides no user interface and Xapian does all the heavy lifting, then what's left here? Not much. %package devel Summary: Development libraries and header files for the Notmuch library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Notmuch-devel contains the development libraries and header files for Notmuch email program. These libraries and header files are necessary if you plan to do development using Notmuch. Install notmuch-devel if you are developing C programs which will use the Notmuch library. You'll also need to install the notmuch package. %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}. %package -n emacs-notmuch-el Summary: Elisp source files for Not much support for Emacs Group: Applications/Editors BuildArch: noarch Requires: emacs-notmuch = %{version}-%{release} %description -n emacs-notmuch-el %{summary}. %prep %setup -q %build # The %%configure macro cannot be used because notmuch doesn't support # some arguments the macro adds to the ./configure call. ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir} \ --emacslispdir=%{_emacs_sitelispdir} make %{?_smp_mflags} CFLAGS="%{optflags}" %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} # Enable dynamic library stripping. find %{buildroot}%{_libdir} -name *.so* -exec chmod 755 {} \; %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING COPYING-GPL-3 INSTALL README TODO %{_sysconfdir}/bash_completion.d/notmuch %{_datadir}/zsh/functions/Completion/Unix/notmuch %{_bindir}/notmuch %{_mandir}/man1/notmuch.1* %{_libdir}/libnotmuch.so.1* %files devel %defattr(-,root,root,-) %{_libdir}/libnotmuch.so %{_includedir}/* %files -n emacs-notmuch %defattr(-,root,root,-) %{_emacs_sitelispdir}/*.elc %{_emacs_sitelispdir}/notmuch-logo.png %files -n emacs-notmuch-el %defattr(-,root,root,-) %{_emacs_sitelispdir}/*.el %changelog * Mon Nov 15 2010 Karel Klic - 0.5-1 - New upstream release * Fri Oct 15 2010 Karel Klic - 0.3.1-3 - Improved the main package description. - Various spec file improvements. * Fri Oct 8 2010 Karel Klic - 0.3.1-2 - Added patch that fixes linking on F13+ * Thu Oct 7 2010 Karel Klic - 0.3.1-1 - New version - Splitted notmuch into several packages * Wed Nov 18 2009 Jeffrey C. Ollie - 0.0-0.3.306635c2 - First version