neomutt/neomutt.spec
David Sterba 73828de18e Accepting request 943948 from home:dirkmueller:Factory
- update to 20211029 (bsc#1185705, CVE-2021-32055):
  * Notmuch: support separate database and mail roots without .notmuch
  * fix notmuch crash on open failure
  * fix crypto crash handling pgp keys
  * fix ncrypt/pgp file_get_size return check
  * fix restore case-insensitive header sort
  * fix pager redrawing of long lines
  * fix notmuch: check database dir for xapian dir
  * fix notmuch: update index count after <entire-thread>
  * fix protect hash table against empty keys
  * fix prevent real_subj being set but empty
  * fix leak when saving fcc
  * fix leak after <edit-or-view-raw-message>
  * fix leak after trash to hidden mailbox
  * fix leak restoring postponed emails
  * fix new mail notifications
  * fix pattern compilation error for ( !>(~P) )
  * fix menu display on window resize
  * Stop batch mode emails with no argument or recipients
  * Add sanitize call in print mailcap function
  * fix hdr_order to use the longest match
  * fix (un)setenv to not return an error with unset env vars
  * fix Imap sync when closing a mailbox
  * fix segfault on OpenBSD current
  * sidebar: restore sidebar_spoolfile colour
  * fix assert when displaying a file from the browser
  * fix exec command in compose
  * fix check_stats for Notmuch mailboxes
  * Fallback: Open Notmuch database without config
  * fix gui hook commands on startup

OBS-URL: https://build.opensuse.org/request/show/943948
OBS-URL: https://build.opensuse.org/package/show/server:mail/neomutt?expand=0&rev=47
2022-01-06 14:14:49 +00:00

156 lines
4.7 KiB
RPMSpec

#
# spec file for package neomutt
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: neomutt
Version: 20211029
Release: 0
Summary: A command line mail reader (or MUA), a fork of Mutt with added features
License: GPL-2.0-or-later
Group: Productivity/Networking/Email/Clients
URL: https://neomutt.org
Source: https://github.com/neomutt/neomutt/archive/%{version}.tar.gz
Source2: https://github.com/neomutt/neomutt/releases/download/%{version}/%{version}.tar.gz.sig
Source3: https://flatcap.org/id/richard.russon.neomutt.asc#/%{name}.keyring
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cyrus-sasl-devel
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gawk
BuildRequires: gdbm-devel
BuildRequires: gettext
BuildRequires: krb5-devel
BuildRequires: libdb-4_8-devel
BuildRequires: libgnutls-devel
BuildRequires: libgpgme-devel
BuildRequires: libidn-devel
BuildRequires: libkyotocabinet-devel
BuildRequires: libtool
BuildRequires: lmdb-devel
BuildRequires: lua-devel
BuildRequires: ncurses-devel
BuildRequires: notmuch-devel
BuildRequires: openssl-devel
BuildRequires: pcre2-devel
BuildRequires: pkgconfig
BuildRequires: w3m
BuildRequires: xsltproc
BuildRequires: zlib-devel
Recommends: neomutt-doc
Recommends: neomutt-lang
%description
NeoMutt is a command line mail reader based on Mutt, brings together many
new features. Can be installed in parallel with mutt.
%package doc
Summary: Additional documentation for neomutt
Group: Documentation/Other
Requires: %{name} = %{version}
#Recommends: perl(Expect)
BuildArch: noarch
%description doc
Documentation for NeoMutt with neomuttrc examples for different environments
and requirements.
%lang_package macro
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
./configure --prefix=%{_prefix} \
--docdir=%{_docdir}/neomutt \
--with-mailpath=%{_localstatedir}/mail \
--kyotocabinet \
--lua \
--lmdb \
--gnutls \
--gpgme \
--notmuch \
--sasl \
--gss \
--idn \
--mixmaster \
--pcre2 \
--zlib
make %{?_smp_mflags}
%install
%make_install
%find_lang neomutt
%files
%config(noreplace) %{_sysconfdir}/neomuttrc
%license %{_docdir}/%{name}/LICENSE.md
%{_bindir}/neomutt
%{_mandir}/man1/neomutt.1%{?ext_man}
%{_mandir}/man5/neomuttrc.5%{?ext_man}
%dir %{_prefix}/libexec/neomutt
%{_prefix}/libexec/neomutt/pgpewrap
%{_prefix}/libexec/neomutt/smime_keys
%{_mandir}/man1/pgpewrap_neomutt.1%{?ext_man}
%{_mandir}/man1/smime_keys_neomutt.1%{?ext_man}
%{_mandir}/man5/mbox_neomutt.5%{?ext_man}
%{_mandir}/man5/mmdf_neomutt.5%{?ext_man}
# this file is used from the default /etc/neomuttrc and moved from neomutt-doc
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/manual.txt
%files doc
%dir %{_docdir}/%{name}/
%dir %doc %{_docdir}/%{name}/colorschemes/
%dir %doc %{_docdir}/%{name}/hcache-bench/
%dir %doc %{_docdir}/%{name}/keybase/
%dir %doc %{_docdir}/%{name}/logo/
%dir %doc %{_docdir}/%{name}/lua/
%dir %doc %{_docdir}/%{name}/samples/
%dir %doc %{_docdir}/%{name}/vim-keys/
%doc %{_docdir}/%{name}/AUTHORS.md
%doc %{_docdir}/%{name}/ChangeLog.md
%doc %{_docdir}/%{name}/CODE_OF_CONDUCT.md
%doc %{_docdir}/%{name}/colorschemes/*.neomuttrc
%doc %{_docdir}/%{name}/CONTRIBUTING.md
%doc %{_docdir}/%{name}/hcache-bench/neomutt-hcache-bench.sh
%doc %{_docdir}/%{name}/hcache-bench/neomuttrc
%doc %{_docdir}/%{name}/hcache-bench/README.md
%doc %{_docdir}/%{name}/*.html
%doc %{_docdir}/%{name}/INSTALL.md
%doc %{_docdir}/%{name}/keybase/*
%doc %{_docdir}/%{name}/logo/neomutt*
%doc %{_docdir}/%{name}/lua/test_lua-api_runner.neomuttrc
%doc %{_docdir}/%{name}/lua/test_lua-api_spec.lua
%doc %{_docdir}/%{name}/mime.types
%doc %{_docdir}/%{name}/oauth2
%doc %{_docdir}/%{name}/README*
%doc %{_docdir}/%{name}/samples/colors.*
%doc %{_docdir}/%{name}/samples/*.pl
%doc %{_docdir}/%{name}/samples/*.py
%doc %{_docdir}/%{name}/samples/*.rc
%doc %{_docdir}/%{name}/samples/sample.*
%doc %{_docdir}/%{name}/SECURITY.md
%doc %{_docdir}/%{name}/smime-notes.txt
%doc %{_docdir}/%{name}/vim-keys/*
%files lang -f %{name}.lang
%changelog