1
0
forked from pool/mutt

Accepting request 122774 from server:mail

- fix build with automake-1.12 
  - add: automake-1.12.patch (forwarded request 122771 from puzel)

OBS-URL: https://build.opensuse.org/request/show/122774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mutt?expand=0&rev=46
This commit is contained in:
Stephan Kulow 2012-05-31 15:07:20 +00:00 committed by Git OBS Bridge
commit 2312d6ac4f
4 changed files with 117 additions and 35 deletions

12
automake-1.12.patch Normal file
View File

@ -0,0 +1,12 @@
Index: mutt-1.5.21/configure.ac
===================================================================
--- mutt-1.5.21.orig/configure.ac
+++ mutt-1.5.21/configure.ac
@@ -27,7 +27,6 @@ AC_MSG_RESULT($mutt_cv_prefix)
AC_PROG_CC
AC_ISC_POSIX
-AM_C_PROTOTYPES
if test "x$U" != "x"; then
AC_MSG_ERROR(Compiler not ANSI compliant)
fi

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue May 29 14:10:05 UTC 2012 - puzel@suse.com
- fix build with automake-1.12
- add: automake-1.12.patch
-------------------------------------------------------------------
Fri Apr 13 12:58:09 UTC 2012 - multiple1902@gmail.com
- Added patch automatically add a filename and description to PGP/MIME attachments.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 1 16:59:32 UTC 2011 - coolo@suse.com Thu Dec 1 16:59:32 UTC 2011 - coolo@suse.com
@ -369,7 +380,7 @@ Wed Nov 17 12:02:43 CET 2004 - mmj@suse.de
Sat Oct 23 14:30:21 CEST 2004 - mmj@suse.de Sat Oct 23 14:30:21 CEST 2004 - mmj@suse.de
- Switch heimdal-* to kerberos-devel-packages in #nfb as pr. requst - Switch heimdal-* to kerberos-devel-packages in #nfb as pr. requst
of Mr. Carsten Höger of Mr. Carsten Höger
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 31 17:08:54 CEST 2004 - mmj@suse.de Tue Aug 31 17:08:54 CEST 2004 - mmj@suse.de
@ -432,7 +443,7 @@ Wed Feb 4 22:49:20 CET 2004 - mmj@suse.de
Wed Feb 4 22:18:28 CET 2004 - mmj@suse.de Wed Feb 4 22:18:28 CET 2004 - mmj@suse.de
- Update to 1.5.6 - Update to 1.5.6
- Include patch from Joël Riou <joel.riou@normalesup.org> which - Include patch from Joël Riou <joel.riou@normalesup.org> which
adds a variable config_charset that one may define in a rc file adds a variable config_charset that one may define in a rc file
that contains non ascii characters (aliases files for that contains non ascii characters (aliases files for
instance). Where a rc file is sourced, the commands are instance). Where a rc file is sourced, the commands are

View File

@ -1,7 +1,7 @@
# #
# spec file for package mutt # spec file for package mutt
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,8 +15,11 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: mutt Name: mutt
#!BuildIgnore: sendmail #!BuildIgnore: sendmail
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: automake BuildRequires: automake
BuildRequires: cyrus-sasl-devel BuildRequires: cyrus-sasl-devel
BuildRequires: cyrus-sasl-gssapi BuildRequires: cyrus-sasl-gssapi
@ -46,8 +49,6 @@ BuildRequires: libgpgme-devel
%else %else
BuildRequires: gpgme-devel BuildRequires: gpgme-devel
%endif %endif
License: GPL-2.0+
Group: Productivity/Networking/Email/Clients
Url: http://www.mutt.org Url: http://www.mutt.org
Provides: muttssl Provides: muttssl
Obsoletes: muttssl Obsoletes: muttssl
@ -62,6 +63,8 @@ Requires(postun): shared-mime-info
Version: 1.5.21 Version: 1.5.21
Release: 0 Release: 0
Summary: Mail Program Summary: Mail Program
License: GPL-2.0+
Group: Productivity/Networking/Email/Clients
# ftp://ftp.mutt.org/mutt/devel/ # ftp://ftp.mutt.org/mutt/devel/
Source0: %name-%version.tar.bz2 Source0: %name-%version.tar.bz2
Source1: Signature_conversion Source1: Signature_conversion
@ -89,6 +92,8 @@ Patch11: nion.sidebar-color.diff
Patch12: mutt-1.5.21-tinfo.dif Patch12: mutt-1.5.21-tinfo.dif
# http://www.wolfermann.org/mutt.html # http://www.wolfermann.org/mutt.html
Patch13: aw.listreply.diff Patch13: aw.listreply.diff
Patch14: patch-1.5.21.vk.pgp_verbose_mime
Patch15: automake-1.12.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir %{_sysconfdir} %global _sysconfdir %{_sysconfdir}
@ -118,6 +123,8 @@ done
%patch11 -p1 -b .sidebar.color %patch11 -p1 -b .sidebar.color
%patch12 -p0 -b .tinfo %patch12 -p0 -b .tinfo
%patch13 -p1 -b .listreply %patch13 -p1 -b .listreply
%patch14 -p1
%patch15 -p1
cp doc/Muttrc Muttrc.SuSE cp doc/Muttrc Muttrc.SuSE
cp %{S:2} . cp %{S:2} .
@ -135,8 +142,8 @@ chmod 755 $KRB5CFGPATH
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--datadir=%{_datadir} \ --datadir=%{_datadir} \
--sysconfdir=%{_sysconfdir} \ --sysconfdir=%{_sysconfdir} \
--mandir=%_mandir \ --mandir=%{_mandir} \
--with-docdir=%_defaultdocdir/%name \ --with-docdir=%{_docdir}/%name \
--enable-imap \ --enable-imap \
--enable-pop \ --enable-pop \
--enable-pgp \ --enable-pgp \
@ -159,34 +166,38 @@ make
make -C doc make -C doc
%install %install
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=%{buildroot}
mv Muttrc.SuSE $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc mv Muttrc.SuSE %{buildroot}%{_sysconfdir}/Muttrc
install -m 755 %{S:1} $RPM_BUILD_ROOT%{_bindir} install -m 755 %{S:1} %{buildroot}%{_bindir}
gzip -9 doc/manu*.txt gzip -9 doc/manu*.txt
rm -f contrib/Makefile* rm -f contrib/Makefile*
# datadir not automatically created: # datadir not automatically created:
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mutt mkdir -p %{buildroot}%{_datadir}/mutt
# INSTALL file should be removed:
rm -rf %{buildroot}%{_docdir}/%{name}/INSTALL
# mbox/mmdf manual page conflicts with the one from tin, so rename it # mbox/mmdf manual page conflicts with the one from tin, so rename it
mv $RPM_BUILD_ROOT%_mandir/man5/mbox.5 \ mv %{buildroot}%{_mandir}/man5/mbox.5 \
$RPM_BUILD_ROOT%_mandir/man5/mbox_mutt.5 %{buildroot}%{_mandir}/man5/mbox_mutt.5
mv $RPM_BUILD_ROOT%_mandir/man5/mmdf.5 \ mv %{buildroot}%{_mandir}/man5/mmdf.5 \
$RPM_BUILD_ROOT%_mandir/man5/mmdf_mutt.5 %{buildroot}%{_mandir}/man5/mmdf_mutt.5
%find_lang %name %find_lang %name
# We get mime.types from aaa_base # We get mime.types from aaa_base
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mime.types rm -f %{buildroot}%{_sysconfdir}/mime.types
# Mutt BTS is gone # Mutt BTS is gone
rm -f $RPM_BUILD_ROOT/%_mandir/man1/{flea*,muttbug*} rm -f %{buildroot}%{_mandir}/man1/{flea*,muttbug*}
rm -f $RPM_BUILD_ROOT%{_bindir}/{flea,muttbug} rm -f %{buildroot}%{_bindir}/{flea,muttbug}
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc.dist rm -f %{buildroot}%{_sysconfdir}/Muttrc.dist
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mime.types.dist rm -f %{buildroot}%{_sysconfdir}/mime.types.dist
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps/ install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/applications/ install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -D -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.muttrc install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/skel/.muttrc
%suse_update_desktop_file mutt %suse_update_desktop_file mutt
%if 0%{?suse_version} > 1130 #%fdupes %{buildroot}
%if 0%{?suse_version} >= 1140
%post %post
%mime_database_post %mime_database_post
@ -195,12 +206,9 @@ install -D -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.muttrc
%mime_database_postun %mime_database_postun
%endif %endif
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang %files -f %name.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc doc/manual*.html doc/manual.txt.gz COPYRIGHT INSTALL README* NEWS TODO %doc doc/manual*.html doc/manual.txt.gz COPYRIGHT README* NEWS TODO
%doc doc/PGP-Notes.txt doc/applying-patches.txt doc/devel-notes.txt %doc doc/PGP-Notes.txt doc/applying-patches.txt doc/devel-notes.txt
%doc contrib/ %doc contrib/
%config(noreplace) %{_sysconfdir}/skel/.muttrc %config(noreplace) %{_sysconfdir}/skel/.muttrc
@ -211,11 +219,11 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/Signature_conversion %{_bindir}/Signature_conversion
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/mutt.png %{_datadir}/pixmaps/mutt.png
%_mandir/man1/mutt.1.gz %{_mandir}/man1/mutt.1.gz
%_mandir/man1/smime_keys.1.gz %{_mandir}/man1/smime_keys.1.gz
%_mandir/man5/mmdf_mutt.5.gz %{_mandir}/man5/mmdf_mutt.5.gz
%_mandir/man5/muttrc.5.gz %{_mandir}/man5/muttrc.5.gz
%_mandir/man5/mbox_mutt.5.gz %{_mandir}/man5/mbox_mutt.5.gz
%{_datadir}/mutt %{_datadir}/mutt
%config(noreplace) %{_sysconfdir}/Muttrc %config(noreplace) %{_sysconfdir}/Muttrc

View File

@ -0,0 +1,51 @@
diff -rupN a/globals.h b/globals.h
--- a/globals.h 2009-08-26 03:08:52.000000000 +0800
+++ b/globals.h 2012-04-11 12:52:44.826523028 +0800
@@ -227,6 +227,8 @@ WHERE REGEXP PgpGoodSign;
WHERE char *PgpSignAs;
WHERE short PgpTimeout;
WHERE char *PgpEntryFormat;
+WHERE char *PgpMimeSignatureFilename;
+WHERE char *PgpMimeSignatureDescription;
WHERE char *PgpClearSignCommand;
WHERE char *PgpDecodeCommand;
WHERE char *PgpVerifyCommand;
diff -rupN a/init.h b/init.h
--- a/init.h 2010-09-15 23:39:31.000000000 +0800
+++ b/init.h 2012-04-11 12:52:44.825523029 +0800
@@ -2556,6 +2556,18 @@ struct option_t MuttVars[] = {
** a line quoted text if it also matches $$smileys. This mostly
** happens at the beginning of a line.
*/
+ { "pgp_mime_signature_filename", DT_STR, R_NONE, UL &PgpMimeSignatureFilename, UL "signature.asc"},
+ /*
+ ** .pp
+ ** This option sets the filename used for signature parts in PGP/MIME
+ ** signed messages.
+ */
+ { "pgp_mime_signature_description", DT_STR, R_NONE, UL &PgpMimeSignatureDescription, UL "Digital signature"},
+ /*
+ ** .pp
+ ** This option sets the Content-Description used for signature parts in
+ ** PGP/MIME signed messages.
+ */
diff -rupN a/PATCHES b/PATCHES
--- a/PATCHES 2008-03-20 04:07:06.000000000 +0800
+++ b/PATCHES 2012-04-11 12:52:44.824523030 +0800
@@ -0,0 +1 @@
+patch-1.5.3.vk.pgp_verbose_mime
diff -rupN a/pgp.c b/pgp.c
--- a/pgp.c 2010-09-14 01:19:55.000000000 +0800
+++ b/pgp.c 2012-04-11 12:52:44.825523029 +0800
@@ -1129,6 +1129,8 @@ BODY *pgp_sign_message (BODY *a)
t->disposition = DISPNONE;
t->encoding = ENC7BIT;
t->unlink = 1; /* ok to remove this file after sending. */
+ mutt_set_parameter ("name", PgpMimeSignatureFilename, &t->parameter);
+ t->description = safe_strdup (PgpMimeSignatureDescription);
return (a);
}