File maildir-utils.spec of Package maildir-utils
#
# spec file for package maildir-utils
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: maildir-utils
Version: 1.0
Release: 0
Summary: Maildir indexer and searcher
License: GPL-3.0+
Group: Productivity/Networking/Email/Utilities
Url: http://www.djcbsoftware.nl/code/mu/
Source: https://github.com/djcb/mu/releases/download/v%{version}/mu-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake >= 1.14
BuildRequires: emacs-nox >= 23
BuildRequires: libtool
BuildRequires: libxapian-devel
BuildRequires: makeinfo
BuildRequires: pkgconfig(gmime-2.6) >= 2.6.7
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Set of utilities to index and search Maildirs. Upstream name is mu.
%package -n mu4e
Summary: Emacs-based e-mail client based on the mu e-mail indexer/searcher
Group: Productivity/Networking/Email/Clients
Requires: %{name} = %{version}
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description -n mu4e
mu4e is an emacs-based e-mail client. It is based on the mu e-mail indexer/searcher.
%prep
%setup -q -n mu-%{version}
%build
autoreconf -i
%configure
make %{?_smp_mflags}
%install
%make_install
%post -n mu4e
%install_info --info-dir=%{_infodir} %{_infodir}/mu4e.info.gz
%preun -n mu4e
%install_info_delete --info-dir=%{_infodir} %{_infodir}/mu4e.info.gz
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%dir %{_datadir}/doc/mu
%{_bindir}/mu
%{_datadir}/doc/mu/NEWS.org
%{_mandir}/man?/*%{ext_man}
%files -n mu4e
%defattr(-,root,root)
%{_datadir}/doc/mu/mu4e-about.org
%dir %{_datadir}/emacs/site-lisp/mu4e/
%{_datadir}/emacs/site-lisp/mu4e/*.{el,elc}
%{_infodir}/mu4e.info%{ext_info}
%changelog