# - update/drop -imap_recent.patch
#
# Conditional build:
+%bcond_without autocrypt # disable autocrypt support
%bcond_with slang # use slang library instead of ncurses
%bcond_with nntp # use VVV's NNTP patch
%bcond_with folder_column # build with folder_column patch
Summary(tr.UTF-8): Mutt elektronik posta programı
Summary(uk.UTF-8): Поштова клієнтська програма Mutt
Name: mutt
-Version: 1.11.2
+Version: 2.0.7
Release: 1
Epoch: 6
License: GPL v2+
Group: Applications/Mail
-# temporarily dead? (Jun 2014)
Source0: ftp://ftp.mutt.org/pub/mutt/%{name}-%{version}.tar.gz
-# Source0-md5: a54798e0c1defa4837244b87070ae5c8
+# Source0-md5: ba33c54a11ccd409aacb16039d36ddd2
Source1: %{name}.desktop
Source2: %{name}.png
Source3: %{name}.1.pl
# http://www.mutt.ca/patches/ (dw.crypt-autoselectkey)
Patch5: %{name}-crypt-autoselectkey.patch
Patch6: %{name}-manual.patch
-Patch7: %{name}-xface.patch
-Patch8: %{name}-Muttrc_mbox_path.patch
-Patch9: %{name}-po.patch
-Patch10: %{name}-Muttrc.head.patch
-Patch11: %{name}-smime.rc.patch
-Patch12: %{name}-db.patch
-Patch13: format-security.patch
-Patch14: %{name}-keep_to.patch
-Patch15: %{name}-vvv.initials.patch
+Patch7: %{name}-Muttrc_mbox_path.patch
+Patch8: %{name}-po.patch
+Patch9: %{name}-Muttrc.head.patch
+Patch10: %{name}-smime.rc.patch
+Patch11: %{name}-db.patch
+Patch12: format-security.patch
+Patch13: %{name}-keep_to.patch
+Patch14: %{name}-vvv.initials.patch
# applied during %%install
Patch50: %{name}-Muttrc.patch
# bcond-related patches
BuildRequires: docbook-style-xsl
%{?with_gdbm:BuildRequires: gdbm-devel}
BuildRequires: gettext-tools
-BuildRequires: gpgme-devel >= 1:1.1.1
+BuildRequires: gpgme-devel >= 1:1.4.0
+%{?with_autocrypt:BuildRequires: gpgme-devel >= 1:1.8.0}
%{?with_home_etc:BuildRequires: home-etc-devel >= 1.0.8}
+BuildRequires: libgpg-error-devel >= 1.33
BuildRequires: libidn-devel
BuildRequires: libxslt-progs
BuildRequires: lynx
BuildRequires: openssl-devel >= 0.9.7d
%{?with_qdbm:BuildRequires: qdbm-devel}
%{?with_slang:BuildRequires: slang-devel}
+%{?with_autocrypt:BuildRequires: sqlite3-devel >= 3.20}
%{?with_tokyocabinet:BuildRequires: tokyocabinet-devel}
+Requires: gpgme >= 1:1.4.0
%{?with_home_etc:Requires: home-etc-lib >= 1.0.8}
Requires: iconv
+Requires: libgpg-error >= 1.33
Suggests: mailcap
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch12 -p1
%patch13 -p1
%patch14 -p1
-%patch15 -p1
%{?with_home_etc:%patch101 -p1}
%{?with_nntp:%patch102 -p1}
# breaks display if arrow_cursor is set
%{?with_folder_column:%patch103 -p1}
-%{?with_imap_recent:%patch1043 -p1}
+%{?with_imap_recent:%patch104 -p1}
# force regeneration (manual.sgml is modified by some patches)
-%{__rm} doc/{manual*.html,manual.txt}
+%{__rm} doc/manual*.html
%build
%{__aclocal} -I m4
--enable-pop \
--enable-sidebar \
--enable-smtp \
+ %{?with_autocrypt:--with-sqlite3 --enable-autocrypt} \
%{?with_bdb:--with-bdb=/usr} \
%{!?with_slang:--with-curses} \
--with-docdir=%{_docdir}/%{name} \
%{__rm} $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
# belongs to mailcap
%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/mime.types
+# don't litter
+%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc.dist
+%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc.orig
+%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/mime.types.dist
%find_lang %{name}
%attr(755,root,root) %{_bindir}/mutt_source-muttrc.d
%attr(755,root,root) %{_bindir}/flea
%attr(755,root,root) %{_bindir}/muttbug
-%attr(755,root,root) %{_bindir}/pgp*
+%attr(755,root,root) %{_bindir}/pgpewrap
%attr(755,root,root) %{_bindir}/smime_keys
%attr(2755,root,mail) %{_bindir}/mutt_dotlock
%{_docdir}/%{name}
%{_desktopdir}/mutt.desktop
%{_pixmapsdir}/mutt.png
-#%{_mandir}/man1/flea.1*
%{_mandir}/man1/mutt*.1*
-%{_mandir}/man1/pgp*.1*
+%{_mandir}/man1/pgpewrap.1*
%{_mandir}/man1/smime_keys.1*
%{_mandir}/man5/mmdf.5*
%{_mandir}/man5/muttrc.5*