2010-11-12 01:30:50 +01:00
|
|
|
%global git 6b9a717c
|
|
|
|
%global date %(date +%Y%m%d)
|
2009-11-18 19:31:54 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2010-11-12 01:30:50 +01:00
|
|
|
# If you are doing a git snapshot:
|
|
|
|
#
|
|
|
|
# Release should be 1%{git}%{?dist}
|
|
|
|
# Source0 should be notmuch-%{version}-%{git}.tar.gz
|
|
|
|
# git version is generated by 'git show-ref --hash=8 HEAD'
|
|
|
|
#
|
|
|
|
# To create a tarball:
|
|
|
|
#
|
|
|
|
# git clone git://notmuchmail.org/git/notmuch
|
|
|
|
# cd notmuch
|
|
|
|
# git archive --format=tar --prefix=notmuch-0.4/ HEAD | gzip > notmuch-0.4-`git show-ref --hash=8 HEAD`.tar.gz
|
|
|
|
#
|
|
|
|
|
2009-11-18 19:31:54 +01:00
|
|
|
Name: notmuch
|
2010-11-12 01:30:50 +01:00
|
|
|
Version: 0.4
|
|
|
|
Release: 1%{?dist}
|
2009-11-18 19:31:54 +01:00
|
|
|
Summary: Not much of an email program
|
|
|
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
License: GPLv3+
|
|
|
|
URL: http://notmuchmail.org/
|
|
|
|
|
2010-11-12 01:30:50 +01:00
|
|
|
Source0: http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
|
2009-11-18 19:31:54 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
Requires: emacs(bin) >= %{emacs_version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
* "Not much mail" is what Notmuch thinks about your email
|
|
|
|
collection. Even if you receive 12000 messages per month or have on
|
|
|
|
the order of millions of messages that you've been saving for
|
|
|
|
decades. Regardless, Notmuch will be able to quickly search all of
|
|
|
|
it. It's just plain not much mail.
|
|
|
|
|
|
|
|
* "Not much mail" is also what you should have in your inbox at any
|
|
|
|
time. Notmuch gives you what you need, (tags and fast search), so
|
|
|
|
that you can keep your inbox tamed and focus on what really matters
|
|
|
|
in your life, (which is surely not email).
|
|
|
|
|
|
|
|
* Notmuch is an answer to Sup. Sup is a very good email program
|
|
|
|
written by William Morgan (and others) and is the direct inspiration
|
|
|
|
for Notmuch. Notmuch began as an effort to rewrite
|
|
|
|
performance-critical pieces of Sup in C rather than ruby. From
|
|
|
|
there, it grew into a separate project. One significant contribution
|
|
|
|
Notmuch makes compared to Sup is the separation of the
|
|
|
|
indexer/searcher from the user interface. (Notmuch provides a
|
|
|
|
library interface so that its indexing/searching/tagging features
|
|
|
|
can be integrated into any email program.)
|
|
|
|
|
|
|
|
* Notmuch is not much of an email program. It doesn't receive messages
|
2010-11-12 01:30:50 +01:00
|
|
|
(no POP or IMAP support). It doesn't send messages (no mail composer,
|
2009-11-18 19:31:54 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
Notmuch is still in the early stages of development, but it does
|
2010-11-12 01:30:50 +01:00
|
|
|
include one user interface, (implemented within Emacs), which has at
|
2009-11-18 19:31:54 +01:00
|
|
|
least two users using it for reading all of their incoming mail. If
|
|
|
|
you've been looking for a fast, global-search and tag-based email
|
2010-11-12 01:30:50 +01:00
|
|
|
reader to use within Emacs, then Notmuch may be exactly what you've
|
2009-11-18 19:31:54 +01:00
|
|
|
been looking for.
|
|
|
|
|
|
|
|
Otherwise, if you're a developer of an existing email program and
|
|
|
|
would love a good library interface for fast, global search with
|
|
|
|
support for arbitrary tags, then Notmuch also may be exactly what
|
|
|
|
you've been looking for.
|
|
|
|
|
2010-11-12 01:30:50 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2009-11-18 19:31:54 +01:00
|
|
|
%prep
|
2010-11-12 01:30:50 +01:00
|
|
|
%setup -q
|
2009-11-18 19:31:54 +01:00
|
|
|
|
|
|
|
%build
|
2010-11-12 01:30:50 +01:00
|
|
|
./configure --prefix=/usr --libdir=%{_libdir} --sysconfdir=%{_sysconfdir}
|
2009-11-18 19:31:54 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
2010-11-12 01:30:50 +01:00
|
|
|
emacs -batch -f batch-byte-compile emacs/*.el
|
2009-11-18 19:31:54 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot} prefix=%{_prefix}
|
2010-11-12 01:30:50 +01:00
|
|
|
mv %{buildroot}%{_sysconfdir}/bash_completion.d %{buildroot}%{_datarootdir}/bash_completion
|
2009-11-18 19:31:54 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2010-11-12 01:30:50 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2009-11-18 19:31:54 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING COPYING-GPL-3 INSTALL README TODO
|
|
|
|
|
|
|
|
%{_bindir}/notmuch
|
2010-11-12 01:30:50 +01:00
|
|
|
%{_libdir}/libnotmuch.so.*
|
2009-11-18 19:31:54 +01:00
|
|
|
%{_mandir}/man1/notmuch.1*
|
2010-11-12 01:30:50 +01:00
|
|
|
|
|
|
|
%{_emacs_sitelispdir}/*
|
|
|
|
|
|
|
|
%{_datarootdir}/zsh/functions/Completion/Unix/notmuch
|
|
|
|
%{_datarootdir}/bash_completion/notmuch
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS COPYING COPYING-GPL-3 INSTALL README TODO
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
2009-11-18 19:31:54 +01:00
|
|
|
|
|
|
|
%changelog
|
2010-11-12 01:30:50 +01:00
|
|
|
* Tue Nov 2 2010 Scott Henson <shenson@redhat.com> - 0.4-1
|
|
|
|
- New upstream release
|
|
|
|
|
2009-11-18 19:31:54 +01:00
|
|
|
* Wed Nov 18 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.0-0.3.306635c2
|
|
|
|
- First version
|
|
|
|
|