From f6d02f9ba6466962f9f0e215e6163995e07c00f3 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Tue, 30 Aug 2016 10:55:06 +0100
Subject: Update to 5.508

- New upstream release 5.508
  - Fix test broken by Perl update (CPAN RT#113887)
---
 MIME-tools-5.507-rt113887.patch | 49 -----------------------------------------
 perl-MIME-tools.spec            | 15 +++++++------
 sources                         |  2 +-
 3 files changed, 9 insertions(+), 57 deletions(-)
 delete mode 100644 MIME-tools-5.507-rt113887.patch

diff --git a/MIME-tools-5.507-rt113887.patch b/MIME-tools-5.507-rt113887.patch
deleted file mode 100644
index c5ed541..0000000
--- a/MIME-tools-5.507-rt113887.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff --git a/MANIFEST b/MANIFEST
-index c2a49ad..6cf638f 100644
---- a/MANIFEST
-+++ b/MANIFEST
-@@ -155,6 +155,7 @@ testmsgs/german.msg
- testmsgs/german.ref
- testmsgs/hdr-fakeout.msg
- testmsgs/hdr-fakeout.ref
-+testmsgs/hdr-fakeout-newmailtools-ref
- testmsgs/malformed-content-type-zip.msg
- testmsgs/multi-2evil.msg
- testmsgs/multi-2evil.ref
-diff --git a/t/Ref.t b/t/Ref.t
-index b3fc985..d39d20b 100644
---- a/t/Ref.t
-+++ b/t/Ref.t
-@@ -39,6 +39,10 @@ foreach my $refpath (@refpaths) {
-     my $msgpath = $refpath; $msgpath =~ s/\.ref$/.msg/;
- #   print STDERR "   $msgpath\n";
- 
-+    ### HACK HACK HACK: MailTools behaviour has changed!!!
-+    if ($msgpath eq 'testmsgs/hdr-fakeout.msg' && $::Mail::Header::VERSION > 
2.14) {
-+          $refpath = 'testmsgs/hdr-fakeout-newmailtools-ref';
-+    }
-     ### Get reference, as ref to array:
-     my $ref = read_ref($refpath);
-     if ($ref->{Parser}{Message}) {
-diff --git a/testmsgs/hdr-fakeout-newmailtools-ref 
b/testmsgs/hdr-fakeout-newmailtools-ref
-new file mode 100644
-index 0000000..b6e9329
---- /dev/null
-+++ b/testmsgs/hdr-fakeout-newmailtools-ref
-@@ -0,0 +1,16 @@
-+{
-+  "Parser" => {
-+    "Message" => "testmsgs/hdr-fakeout.msg",
-+    "ExtractNested" => 1,
-+    "OutputToCore" => "0",
-+    "Name" => "anonymous"
-+  },
-+  "Msg" => {
-+      "Subject" => "test message 1",
-+      "Type" => "text/plain",
-+      "To" => "\"Russell P. Sutherland\" <russ\@quist.on.ca>",
-+      "From" => "\"Russell P. Sutherland\" <russ\@quist.on.ca>",
-+      "Encoding" => "7bit"
-+   }
-+}
-+
diff --git a/perl-MIME-tools.spec b/perl-MIME-tools.spec
index 983cb56..cddc7d9 100644
--- a/perl-MIME-tools.spec
+++ b/perl-MIME-tools.spec
@@ -1,13 +1,12 @@
 Summary:       Modules for parsing and creating MIME entities in Perl
 Name:          perl-MIME-tools
-Version:       5.507
-Release:       4%{?dist}
+Version:       5.508
+Release:       1%{?dist}
 Group:         Development/Libraries
 License:       GPL+ or Artistic
 URL:           http://search.cpan.org/dist/MIME-tools/
 Source0:       
http://search.cpan.org/CPAN/authors/id/D/DS/DSKOLL/MIME-tools-%{version}.tar.gz
 Patch0:                MIME-tools-5.506-UTF8.patch
-Patch1:                MIME-tools-5.507-rt113887.patch
 BuildArch:     noarch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 # ================ Module Build ======================
@@ -65,9 +64,6 @@ parser and tool for building your own MIME parser, and 
utilities.
 # Fix character encoding
 %patch0
 
-# Work around behaviour change in MailTools > 2.14 (#1329082, CPAN RT#113887)
-%patch1 -p1
-
 # The more useful examples will go in %%{_bindir}
 mkdir useful-examples
 mv examples/mime{dump,encode,explode,postcard,send} useful-examples/
@@ -109,7 +105,7 @@ rm -rf %{buildroot}
 %doc README ChangeLog
 # Adding examples introduces additional deps, but these are all satisfied by
 # perl, perl-MIME-tools, and perl-MailTools, which are all deps anyway.
-%doc examples
+%doc examples/
 %{perl_vendorlib}/MIME/
 %{_bindir}/mimedump
 %{_bindir}/mimeencode
@@ -145,6 +141,11 @@ rm -rf %{buildroot}
 %{_mandir}/man3/MIME::Words.3*
 
 %changelog
+* Tue Aug 30 2016 Paul Howarth <p...@city-fan.org> - 5.508-1
+- Update to 5.508
+  - Fix test broken by Perl update (CPAN RT#113887)
+- BR: perl-generators
+
 * Mon May 16 2016 Jitka Plesnikova <jples...@redhat.com> - 5.507-4
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index da9ec20..99ee827 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-98e1997b6ddd973ced9b2f6feb9d6aaf  MIME-tools-5.507.tar.gz
+75067d7497ffdcc50cf0009a7bccc3d2  MIME-tools-5.508.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-MIME-tools.git/commit/?h=master&id=f6d02f9ba6466962f9f0e215e6163995e07c00f3
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to