Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37561744
en ru br
ALT Linux repos
S:0.31.4-alt1

Group :: Office
RPM: notmuch

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: notmuch
Version: 0.31.4
Release: alt1

Summary: new email reading system called notmuch

Group: Office
License: GPLv3+
Url: http://notmuchmail.org/

Packager: Vitaly Lipatov <lav at altlinux.ru>

# Source-git: git://notmuchmail.org/git/notmuch

Source: %name-%version.tar

BuildRequires: rpm-macros-emacs
BuildRequires: gcc-c++ libgmime3.0-devel libtalloc-devel libxapian-devel zlib-devel gnupg
BuildRequires: emacs-devel emacs-nox emacs-gnus
BuildRequires: python3-module-sphinx python3-module-sphinx-sphinx-build-symlink

%description
Notmuch is not much of an email program. It doesn't receive messages
(no POP or IMAP suport). 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.

Notmuch is still in the early stages of development, but it does
include one user interface, (implemented within emacs), which has at
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
reader to use within emacs, then Notmuch may be exactly what you've
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.

%package emacs
Group: Office
Summary: Emacs front-end for %name
Requires: %name = %version-%release
BuildArch: noarch

%description emacs
Emacs front-end for %name

%package -n lib%name
Group: System/Libraries
Summary: Shared library for %name

%description -n lib%name
Shared library for %name

%package -n lib%name-devel
Group: Development/C
Summary: Header files for developing programs using lib%name
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains the header files needed to develop programs
based on lib%name

%prep
%setup

%build
export CFLAGS="%optflags"
export CXXFLAGS="%optflags"
./configure --prefix=%prefix --without-ruby

%make_build V=1

%install
make libdir=%_libdir DESTDIR=%buildroot install
install -D -m0644 emacs/%name-emacs-mua.desktop %buildroot%_desktopdir/%name-emacs-mua.desktop
install -D -m0644 completion/notmuch-completion.bash %buildroot%_sysconfdir/bash_completion.d/%name

mkdir -p %buildroot%_emacs_sitestart_dir
cat >%buildroot%_emacs_sitestart_dir/%name.el <<EOF
; site-start script for Emacs, initializes notmuch
; Evgenii Terechkov, April 2010, <evg at altlinux.ru>

(require 'notmuch)
EOF

install -m0755 emacs/notmuch-emacs-mua %buildroot%_bindir/notmuch-emacs-mua

%files
%_bindir/%name
%_sysconfdir/bash_completion.d/%name
%_desktopdir/%name-emacs-mua.desktop
%_man1dir/%{name}*
%_man5dir/%{name}*
%_man7dir/%{name}*
%doc AUTHORS README NEWS

%files emacs
%_bindir/notmuch-emacs-mua
%_emacs_sitestart_dir/%name.el
%_emacslispdir/*.el*

%files -n lib%name
%_libdir/lib%name.so.*

%files -n lib%name-devel
%_includedir/%name.h
%_libdir/lib%name.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin