# conditionals:
# --with slang: use slang library instead of ncurses
+# --with nntp: use VVV's NNTP patch
Summary: The Mutt Mail User Agent
Summary(de): Der Mutt Mail-User-Agent
Summary(uk): ðÏÛÔÏ×Á Ë̦¤ÎÔÓØËÁ ÐÒÏÇÒÁÍÁ Mutt
Name: mutt
Version: 1.4
-Release: 4
+Release: 5
Epoch: 5
License: GPL
Group: Applications/Mail
Source1: %{name}.desktop
Source2: %{name}.png
Source3: %{name}.1.pl
+Source4: %{name}-nntp.config
Patch0: %{name}-home_etc.patch
Patch1: %{name}-forcedotlock.patch
Patch2: %{name}-muttbug-tmp.patch
Patch15: %{name}-pgp_hook.patch
Patch16: %{name}-manual.patch
Patch17: %{name}-send_charset.patch
-Patch18: %{name}-nntp.patch
+Patch18: %{name}-sasl2.patch
URL: http://www.mutt.org/
BuildRequires: autoconf
BuildRequires: automake
%patch15 -p1
%patch16 -p1
%patch17 -p0
+%{?_with_nntp:%patch18 -p1}
+%{?_with_nntp:cat %{SOURCE4} >> Muttrc.head.in}
%patch18 -p1
%build
--enable-mailtool \
--with-mixmaster \
--enable-pop \
- --enable-nntp \
+ %{?_with_nntp:--enable-nntp} \
--with-regex \
%{!?_without_sasl:--with-sasl} %{?_without_sasl:--without-sasl} \
--with-ssl \
# conflict with qmail
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
+rm -f $RPM_BUILD_ROOT/etc/mime.types
+
%find_lang %{name}
%clean