From de574dea43d2c5780c09dc1d23d4ab734ea97178056002dcbac2bd5d311c67cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Mon, 15 Jul 2013 12:10:38 +0000 Subject: [PATCH 1/4] fix searching of %INC OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MailTools?expand=0&rev=23 --- incsearch.diff | 17 +++++++++++++++++ perl-MailTools.changes | 6 ++++++ perl-MailTools.spec | 10 +++++----- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 incsearch.diff diff --git a/incsearch.diff b/incsearch.diff new file mode 100644 index 0000000..71ac9a6 --- /dev/null +++ b/incsearch.diff @@ -0,0 +1,17 @@ +%INC is randomized nowadays, so sort it to get consistent results. +Also, more important, make sure $INC{$f} is really set, otherwise +we end up searching the filesystem root. + +--- ./lib/Mail/Field.pm.orig 2013-07-15 12:06:12.000000000 +0000 ++++ ./lib/Mail/Field.pm 2013-07-15 12:07:24.000000000 +0000 +@@ -63,8 +63,9 @@ sub import + } + + my($dir,$dir_sep); +- foreach my $f (keys %INC) ++ foreach my $f (sort keys %INC) + { next if $f !~ /^Mail(\W)Field\W/i; ++ next unless $INC{$f}; + $dir_sep = $1; + $dir = ($INC{$f} =~ /(.*Mail\W+Field)/i)[0] . $dir_sep; + last; diff --git a/perl-MailTools.changes b/perl-MailTools.changes index 150cf71..aae2447 100644 --- a/perl-MailTools.changes +++ b/perl-MailTools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 15 14:09:27 CEST 2013 - mls@suse.de + +- fix searching of %INC, make sure the entry really has a set + value. Fixes the perl-MIME-tools module. + ------------------------------------------------------------------- Thu Mar 01 19:46:02 UTC 2012 - pascal.bleser@opensuse.org diff --git a/perl-MailTools.spec b/perl-MailTools.spec index 50a9681..da7b778 100644 --- a/perl-MailTools.spec +++ b/perl-MailTools.spec @@ -1,7 +1,7 @@ # # spec file for package perl-MailTools # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,19 +15,18 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-MailTools Url: http://cpan.org/modules/by-module/Mail/ Version: 2.09 -Release: 1 +Release: 0 Provides: p_mtools = %{version} Obsoletes: p_mtools < %{version} +Summary: Set of perl modules related to mail applications License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -Summary: Set of perl modules related to mail applications Source: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz +Patch: incsearch.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl @@ -39,6 +38,7 @@ a set of perl modules related to mail applications %prep %setup -q -n MailTools-%{version} +%patch # --------------------------------------------------------------------------- %build From 9f747dd61f4d694f5833613b8d70b64f7d27845198d5948a0dab4a43e3458081 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 15 Jul 2013 12:48:24 +0000 Subject: [PATCH 2/4] - update to 2.12 Fixes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - default for Mail::Header::new(Modify) is 'false', not 'true' rt.cpan.org#79985 [Thomas Sibley] - Mail::Address take username with rindex(), a bit better than index() but still poor. rt.cpan.org#82056 [Filipe Gonçalves] Improvements: - check for bad folding of header lines rt.cpan.org#79993 [Thomas Sibley] - add a note about better to avoid Mail::Address->name(), in response to a question by rt.cpan.org#81459 [Moritz Lenz] version 2.11: Wed Aug 29 09:09:47 CEST 2012 Fixes: - typo in Mail::Mailer::smtp, which only shows up in >5.14 [cpantesters] version 2.10: Tue Aug 28 09:41:52 CEST 2012 Fixes: OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MailTools?expand=0&rev=24 --- MailTools-2.09.tar.gz | 3 --- MailTools-2.12.tar.gz | 3 +++ perl-MailTools.changes | 39 +++++++++++++++++++++++++++++++++++++++ perl-MailTools.spec | 2 +- 4 files changed, 43 insertions(+), 4 deletions(-) delete mode 100644 MailTools-2.09.tar.gz create mode 100644 MailTools-2.12.tar.gz diff --git a/MailTools-2.09.tar.gz b/MailTools-2.09.tar.gz deleted file mode 100644 index 964ec15..0000000 --- a/MailTools-2.09.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fbe1b7eb1c3bf220bbe285155ea57686f92e3da4e89f3ea9b6c5ad56e3621bf0 -size 53290 diff --git a/MailTools-2.12.tar.gz b/MailTools-2.12.tar.gz new file mode 100644 index 0000000..7e4daa1 --- /dev/null +++ b/MailTools-2.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51ad50f324a1d11df21c430ced74b2077c2cf5e2c27f263a181cbd9a5d964737 +size 54553 diff --git a/perl-MailTools.changes b/perl-MailTools.changes index aae2447..9ee0d61 100644 --- a/perl-MailTools.changes +++ b/perl-MailTools.changes @@ -1,3 +1,42 @@ +------------------------------------------------------------------- +Mon Jul 15 12:47:51 UTC 2013 - coolo@suse.com + +- update to 2.12 + Fixes: + + - default for Mail::Header::new(Modify) is 'false', not 'true' + rt.cpan.org#79985 [Thomas Sibley] + + - Mail::Address take username with rindex(), a bit better than + index() but still poor. + rt.cpan.org#82056 [Filipe Gonçalves] + + Improvements: + + - check for bad folding of header lines + rt.cpan.org#79993 [Thomas Sibley] + + - add a note about better to avoid Mail::Address->name(), + in response to a question by + rt.cpan.org#81459 [Moritz Lenz] + + version 2.11: Wed Aug 29 09:09:47 CEST 2012 + + Fixes: + + - typo in Mail::Mailer::smtp, which only shows up in >5.14 + [cpantesters] + + version 2.10: Tue Aug 28 09:41:52 CEST 2012 + + Fixes: + + - Mail::Mailer::smtp set from address twice. + rt.cpan.org#77161 [Vladimir Goshev] + + - Mail::Mailer::smtps did not support the From option. + rt.cpan.org#77161 [Vladimir Goshev] + ------------------------------------------------------------------- Mon Jul 15 14:09:27 CEST 2013 - mls@suse.de diff --git a/perl-MailTools.spec b/perl-MailTools.spec index da7b778..d27fed9 100644 --- a/perl-MailTools.spec +++ b/perl-MailTools.spec @@ -18,7 +18,7 @@ Name: perl-MailTools Url: http://cpan.org/modules/by-module/Mail/ -Version: 2.09 +Version: 2.12 Release: 0 Provides: p_mtools = %{version} Obsoletes: p_mtools < %{version} From 385df156c6778a6245338c0f8feda65717969d1c7884cfa219339b17f4666a62 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 15 Jul 2013 12:50:43 +0000 Subject: [PATCH 3/4] - updated to 2.12 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MailTools?expand=0&rev=25 --- perl-MailTools.changes | 5 +++++ perl-MailTools.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/perl-MailTools.changes b/perl-MailTools.changes index 9ee0d61..45f73d1 100644 --- a/perl-MailTools.changes +++ b/perl-MailTools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 15 12:48:31 UTC 2013 - coolo@suse.com + +- updated to 2.12 + ------------------------------------------------------------------- Mon Jul 15 12:47:51 UTC 2013 - coolo@suse.com diff --git a/perl-MailTools.spec b/perl-MailTools.spec index d27fed9..5cadf6c 100644 --- a/perl-MailTools.spec +++ b/perl-MailTools.spec @@ -31,6 +31,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Date::Format) +BuildRequires: perl(Date::Parse) +Requires: perl(Date::Format) +Requires: perl(Date::Parse) %description a set of perl modules related to mail applications From dd0c5bd61d021ffd638569ca9b3e0df9f924829b9344f5e8bfb75939f762e9b4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 15 Jul 2013 12:51:04 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MailTools?expand=0&rev=26 --- perl-MailTools.changes | 5 ----- 1 file changed, 5 deletions(-) diff --git a/perl-MailTools.changes b/perl-MailTools.changes index 45f73d1..9ee0d61 100644 --- a/perl-MailTools.changes +++ b/perl-MailTools.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Mon Jul 15 12:48:31 UTC 2013 - coolo@suse.com - -- updated to 2.12 - ------------------------------------------------------------------- Mon Jul 15 12:47:51 UTC 2013 - coolo@suse.com