Accepting request 297718 from devel:languages:perl

- updated to 2.14
   see /usr/share/doc/packages/perl-MailTools/ChangeLog
  version 2.14: Fri Nov 21 17:12:42 CET 2014
  
  	Fixes:
  
  	- threads and Mail::Field initiation
  	  rt.cpan.org#99153 [Autumn Lansing] and [Arne Becker]
  
  	Improvements:
  
  	- warn when loading of some Mail::Field::* fails [Arne Becker]
  
  version 2.13: Sun Jan  5 18:52:25 CET 2014
  
  	Fixes:
  
  	- optional 'from' and 'on' component in in-reply-to are comments
  	  rt.cpan.org#89371 [Ward Vandewege]
  	- mailcap \\ -> \
  	  rt.cpan.org#89802 [Kevin Ryde]
  
  	Improvements:
  
  	- fix typos  rt.cpan.org#87188 [D Steinbrunner]
- remove obsolete incsearch.diff

OBS-URL: https://build.opensuse.org/request/show/297718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MailTools?expand=0&rev=30
This commit is contained in:
Stephan Kulow 2015-04-25 19:16:59 +00:00 committed by Git OBS Bridge
commit d89b37b107
6 changed files with 72 additions and 46 deletions

View File

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

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

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

17
cpanspec.yml Normal file
View File

@ -0,0 +1,17 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@ -1,17 +0,0 @@
%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,35 @@
-------------------------------------------------------------------
Fri Apr 17 09:11:57 UTC 2015 - coolo@suse.com
- updated to 2.14
see /usr/share/doc/packages/perl-MailTools/ChangeLog
version 2.14: Fri Nov 21 17:12:42 CET 2014
Fixes:
- threads and Mail::Field initiation
rt.cpan.org#99153 [Autumn Lansing] and [Arne Becker]
Improvements:
- warn when loading of some Mail::Field::* fails [Arne Becker]
version 2.13: Sun Jan 5 18:52:25 CET 2014
Fixes:
- optional 'from' and 'on' component in in-reply-to are comments
rt.cpan.org#89371 [Ward Vandewege]
- mailcap \\ -> \
rt.cpan.org#89802 [Kevin Ryde]
Improvements:
- fix typos rt.cpan.org#87188 [D Steinbrunner]
- remove obsolete incsearch.diff
-------------------------------------------------------------------
Mon Jul 15 12:47:51 UTC 2013 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-MailTools
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,51 +17,45 @@
Name: perl-MailTools
Url: http://cpan.org/modules/by-module/Mail/
Version: 2.12
Version: 2.14
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
%define cpan_name MailTools
Summary: Various e-mail related modules
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
Patch: incsearch.diff
Url: http://search.cpan.org/dist/MailTools/
Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
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)
%{perl_requires}
%description
a set of perl modules related to mail applications
Various e-mail related modules
%prep
%setup -q -n MailTools-%{version}
%patch
# ---------------------------------------------------------------------------
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make %{?_smp_mflags}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
make test
# ---------------------------------------------------------------------------
%{__make} test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files
%defattr(-,root,root)
%{perl_vendorlib}/Mail
%{perl_vendorarch}/auto/Mail
%doc /usr/share/man/man3/*.gz
%doc ChangeLog MANIFEST README README.demos examples
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog examples MailTools.ppd README README.demos
%changelog