Summary(pl): Program pocztowy Mutt
Summary(tr): Mutt elektronik posta programý
Name: mutt
-Version: 1.0
-Release: 2i
-Copyright: GPL
+Version: 1.2i
+Release: 3
+Serial: 2
+License: GPL
Group: Applications/Mail
+Group(pt): Aplicações/Correio Eletrônico
Group(pl): Aplikacje/Poczta
-Source0: ftp://riemann.iam.uni-bonn.de/pub/mutt/%{name}-%{version}i.tar.gz
+Source0: ftp://ftp.mutt.org/pub/mutt/%{name}-%{version}.tar.gz
Source1: mutt.desktop
-Source2: Muttrc
+Source2: patches_sec.txt
+Source3: patches_bj.txt
Patch0: mutt-mail.patch
-Patch1: ftp://dione.ids.pl/people/siewca/patches/mutt-etc.patch
+#Patch1: mutt-confdir.patch
+Patch2: http://www.spinnaker.de/mutt/patch-1.2.rr.compressed.1.gz
+# Part of that patches I changed by hand to fit them into newer version
+# (bonkey)
+Patch3: patch-0.00.sec+bonk.patchlist.1
+Patch4: mutt-blanklines.patch
+Patch7: http://sec.42.org/mutt/patch-0.94.7.sec.previous_jump.1
+Patch9: http://sec.42.org/mutt/patch-0.94.7.vikas.word_chars.1
+Patch10: http://sec.42.org/mutt/patch-0.95.3.bj.ed_mtime.1
+Patch12: http://sec.42.org/mutt/patch-0.95.4.bj.status-time.1
+Patch14: http://sec.42.org/mutt/patch-0.95.4.sec.keypad.1
+Patch16: http://sec.42.org/mutt/patch-0.95.4.sec.reverse_reply.1
+Patch17: http://sec.42.org/mutt/patch-0.95.4.vikas.print_index.1
+Patch18: http://sec.42.org/mutt/patch-0.95.6.as.mark-old.1
+Patch19: http://sec.42.org/mutt/patch-0.95.bj.hash_destroy.2
+Patch20: http://sec.42.org/mutt/patch-0.95.sec.condense_pgp.1
+Patch22: http://sec.42.org/mutt/patch-1.02.sec._A.1
+#Patch23: http://www.murkworks.to/blank-line.patch
+#Patch24: http://www.albedo.art.pl/~kbryd/mutt/mutt_package.tar.gz
+Patch25: mutt-dot-lock.patch
URL: http://www.mutt.org/
Requires: smtpdaemon
Requires: mailcap
BuildRequires: ncurses-devel >= 5.0
-Buildroot: /tmp/%{name}-%{version}-root
+BuildRequires: openssl-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc
%description
Mutt is a small but very poweful full-screen Unix mail client.
bindable keys, and threaded sorting mode.
%description -l de
-Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für Unix mit
-MIME-Unterstützung, Farbe, POP3-Unterstützung, Nachrichten-Threading,
-zuweisbaren Tasten und Sortieren nach Threads.
+Mutt ist ein kleiner aber leistungsfähiger Vollbild-Mail-Client für
+Unix mit MIME-Unterstützung, Farbe, POP3-Unterstützung,
+Nachrichten-Threading, zuweisbaren Tasten und Sortieren nach Threads.
%description -l fr
-mutt est un client courrier Unix plein écran, petit mais très puissant.
-Il dispose de la gestion MIME, des couleurs, de la gestion POP, des fils
-de discussion, des touches liées et d'un mode de tri sur les fils.
+mutt est un client courrier Unix plein écran, petit mais très
+puissant. Il dispose de la gestion MIME, des couleurs, de la gestion
+POP, des fils de discussion, des touches liées et d'un mode de tri sur
+les fils.
%description -l pl
Mutt jest niewielkim programem pocztowym dla terminali tekstowych
oraz skompresowane foldery.
%description -l tr
-Mutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME desteði,
-renk ve POP3 desteði içerir.
+Mutt, küçük ama çok güçlü bir tam-ekran Unix mektup istemcisidir. MIME
+desteði, renk ve POP3 desteði içerir.
%prep
-%setup -q
+%setup -q -n %{name}-%(echo %{version} | sed 's/i$//')
%patch0 -p0
-%patch1 -p1
+#%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch7 -p1
+%patch9 -p0
+%patch10 -p0
+%patch12 -p1
+%patch14 -p1
+%patch16 -p1
+%patch17 -p1
+%patch18 -p1
+%patch19 -p0
+%patch20 -p1
+%patch22 -p1
+#%patch23 -p0
+%patch25 -p1
%build
+mv aclocal.m4 acinclude.m4
+aclocal
+automake
+autoconf
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
-LDFLAGS="-s"
+LDFLAGS=""
export CFLAGS LDFLAGS
%configure \
--with-sharedir=%{_datadir} \
--disable-warnings \
--disable-domain \
--enable-compressed \
+ --with-mailpath=/var/mail \
+ --with-homespool=Mailbox \
+ --with-ssl \
+ --with-charmaps \
--with-docdir=%{_defaultdocdir}/%{name}-%{version}
-make
+%{__make} keymap.h
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Networking/Mail
+install -d $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE1} $RPM_BUILD_ROOT/usr/X11R6/share/applnk/Networking/Mail
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/Muttrc
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
+install %{SOURCE2} %{SOURCE3} .
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
- contrib/{*rc,*cap} \
- ChangeLog README TODO NEWS README.SECURITY
+ contrib/{*rc*,*cap*} \
+ ChangeLog README TODO NEWS README.SECURITY README.SSL README.UPGRADE \
+ patches_{bj,sec}.txt
%find_lang %{name}
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc {ChangeLog,README,TODO,NEWS,README.SECURITY}.gz
+%doc {ChangeLog,README,TODO,NEWS,README.SECURITY,README.SSL,README.UPGRADE}.gz
+%doc contrib/{*rc*,*cap*}
+%doc doc/manual*html
+%doc patches_{bj,sec}.txt.gz
-%config(noreplace) %verify(not size md5 mtime) /etc/Muttrc
-/usr/X11R6/share/applnk/Networking/Mail/mutt.desktop
+%config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/Muttrc
+%{_applnkdir}/Network/Mail/mutt.desktop
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man*/*