Accepting request 183078 from devel:languages:perl

- update to 2.12

OBS-URL: https://build.opensuse.org/request/show/183078
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MailTools?expand=0&rev=27
This commit is contained in:
Stephan Kulow 2013-07-16 13:56:20 +00:00 committed by Git OBS Bridge
commit 313c0a242c
5 changed files with 75 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fbe1b7eb1c3bf220bbe285155ea57686f92e3da4e89f3ea9b6c5ad56e3621bf0
size 53290

3
MailTools-2.12.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51ad50f324a1d11df21c430ced74b2077c2cf5e2c27f263a181cbd9a5d964737
size 54553

17
incsearch.diff Normal file
View File

@ -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;

View File

@ -1,3 +1,48 @@
-------------------------------------------------------------------
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
- 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 Thu Mar 01 19:46:02 UTC 2012 - pascal.bleser@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package perl-MailTools # 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 # 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,23 +15,26 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-MailTools Name: perl-MailTools
Url: http://cpan.org/modules/by-module/Mail/ Url: http://cpan.org/modules/by-module/Mail/
Version: 2.09 Version: 2.12
Release: 1 Release: 0
Provides: p_mtools = %{version} Provides: p_mtools = %{version}
Obsoletes: p_mtools < %{version} Obsoletes: p_mtools < %{version}
Summary: Set of perl modules related to mail applications
License: GPL-1.0+ or Artistic-1.0 License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl 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 Source: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
Patch: incsearch.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires} %{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Date::Format)
BuildRequires: perl(Date::Parse)
Requires: perl(Date::Format)
Requires: perl(Date::Parse)
%description %description
a set of perl modules related to mail applications a set of perl modules related to mail applications
@ -39,6 +42,7 @@ a set of perl modules related to mail applications
%prep %prep
%setup -q -n MailTools-%{version} %setup -q -n MailTools-%{version}
%patch
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
%build %build