1
0
forked from pool/mutt

Accepting request 122254 from home:multiple1902:branches:server:mail

Added patch automatically add a filename and description to PGP/MIME attachments. Improved writing style of mutt.spec. The latter done by Marguerite Su.

OBS-URL: https://build.opensuse.org/request/show/122254
OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=75
This commit is contained in:
Dr. Werner Fink 2012-05-25 14:08:44 +00:00 committed by Git OBS Bridge
parent 93f0fb40e4
commit c1c87867f9
3 changed files with 92 additions and 32 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
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
@ -369,7 +374,7 @@ Wed Nov 17 12:02:43 CET 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
of Mr. Carsten Höger
of Mr. Carsten Höger
-------------------------------------------------------------------
Tue Aug 31 17:08:54 CEST 2004 - mmj@suse.de
@ -432,7 +437,7 @@ Wed Feb 4 22:49:20 CET 2004 - mmj@suse.de
Wed Feb 4 22:18:28 CET 2004 - mmj@suse.de
- 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
that contains non ascii characters (aliases files for
instance). Where a rc file is sourced, the commands are

View File

@ -39,6 +39,7 @@ BuildRequires: postfix
BuildRequires: sgml-skel
BuildRequires: update-desktop-files
BuildRequires: xli
BuildRequires: autoconf automake
#if
%if 0%{?suse_version} > 1130
BuildRequires: libassuan-devel
@ -89,6 +90,7 @@ Patch11: nion.sidebar-color.diff
Patch12: mutt-1.5.21-tinfo.dif
# http://www.wolfermann.org/mutt.html
Patch13: aw.listreply.diff
Patch14: patch-1.5.21.vk.pgp_verbose_mime
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir %{_sysconfdir}
@ -118,6 +120,7 @@ done
%patch11 -p1 -b .sidebar.color
%patch12 -p0 -b .tinfo
%patch13 -p1 -b .listreply
%patch14 -p1
cp doc/Muttrc Muttrc.SuSE
cp %{S:2} .
@ -135,8 +138,8 @@ chmod 755 $KRB5CFGPATH
--prefix=%{_prefix} \
--datadir=%{_datadir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%_mandir \
--with-docdir=%_defaultdocdir/%name \
--mandir=%{_mandir} \
--with-docdir=%{_docdir}/%name \
--enable-imap \
--enable-pop \
--enable-pgp \
@ -159,34 +162,38 @@ make
make -C doc
%install
make install DESTDIR=$RPM_BUILD_ROOT
mv Muttrc.SuSE $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc
install -m 755 %{S:1} $RPM_BUILD_ROOT%{_bindir}
make install DESTDIR=%{buildroot}
mv Muttrc.SuSE %{buildroot}%{_sysconfdir}/Muttrc
install -m 755 %{S:1} %{buildroot}%{_bindir}
gzip -9 doc/manu*.txt
rm -f contrib/Makefile*
# 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
mv $RPM_BUILD_ROOT%_mandir/man5/mbox.5 \
$RPM_BUILD_ROOT%_mandir/man5/mbox_mutt.5
mv $RPM_BUILD_ROOT%_mandir/man5/mmdf.5 \
$RPM_BUILD_ROOT%_mandir/man5/mmdf_mutt.5
mv %{buildroot}%{_mandir}/man5/mbox.5 \
%{buildroot}%{_mandir}/man5/mbox_mutt.5
mv %{buildroot}%{_mandir}/man5/mmdf.5 \
%{buildroot}%{_mandir}/man5/mmdf_mutt.5
%find_lang %name
# 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
rm -f $RPM_BUILD_ROOT/%_mandir/man1/{flea*,muttbug*}
rm -f $RPM_BUILD_ROOT%{_bindir}/{flea,muttbug}
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc.dist
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mime.types.dist
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/applications/
install -D -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.muttrc
rm -f %{buildroot}%{_mandir}/man1/{flea*,muttbug*}
rm -f %{buildroot}%{_bindir}/{flea,muttbug}
rm -f %{buildroot}%{_sysconfdir}/Muttrc.dist
rm -f %{buildroot}%{_sysconfdir}/mime.types.dist
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/skel/.muttrc
%suse_update_desktop_file mutt
%if 0%{?suse_version} > 1130
#%fdupes %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%mime_database_post
@ -195,12 +202,9 @@ install -D -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.muttrc
%mime_database_postun
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%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 contrib/
%config(noreplace) %{_sysconfdir}/skel/.muttrc
@ -211,11 +215,11 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/Signature_conversion
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/mutt.png
%_mandir/man1/mutt.1.gz
%_mandir/man1/smime_keys.1.gz
%_mandir/man5/mmdf_mutt.5.gz
%_mandir/man5/muttrc.5.gz
%_mandir/man5/mbox_mutt.5.gz
%{_mandir}/man1/mutt.1.gz
%{_mandir}/man1/smime_keys.1.gz
%{_mandir}/man5/mmdf_mutt.5.gz
%{_mandir}/man5/muttrc.5.gz
%{_mandir}/man5/mbox_mutt.5.gz
%{_datadir}/mutt
%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);
}