From 93ad8dabaed42fff03d8020d1da4224e3b4b9199 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 20 Jul 2017 15:20:24 +0200
Subject: Adapt to Perl 5.26.0 POD changes

---
 perl-pmtools.spec                |  8 +++++++-
 pmtools-2.0.0-t_pfcat_5.26.patch | 15 +++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 pmtools-2.0.0-t_pfcat_5.26.patch

diff --git a/perl-pmtools.spec b/perl-pmtools.spec
index dacd236..ccade3d 100644
--- a/perl-pmtools.spec
+++ b/perl-pmtools.spec
@@ -1,6 +1,6 @@
 Name:           perl-pmtools
 Version:        2.0.0
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        A suite of small programs to help manage Perl modules
 
 Group:          Development/Libraries
@@ -8,6 +8,8 @@ License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/pmtools/
 Source:         
http://www.cpan.org/authors/id/M/ML/MLFISHER/pmtools-%{version}.tar.gz
 Patch0:         pmtools-2.0.0-perlfaq-in-vendorlib.patch
+# Adapt to Perl 5.26.0 POD changes, bug #1465062, CPAN RT#122210
+Patch1:         pmtools-2.0.0-t_pfcat_5.26.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -49,6 +51,7 @@ Tom Christiansen
 find . -type f -perm 755 | xargs %{__perl} -pi -e 's{^#!/usr/bin/env 
perl}{#!%{__perl}}'
 chmod -c a-x Changes TODO lib/Devel/Loaded.pm
 %patch0 -p1
+%patch1 -p1
 
 
 %build
@@ -77,6 +80,9 @@ make test
 
 
 %changelog
+* Thu Jul 20 2017 Petr Pisar <ppi...@redhat.com> - 2.0.0-9
+- Adapt to Perl 5.26.0 POD changes (bug #1465062)
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
2.0.0-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
diff --git a/pmtools-2.0.0-t_pfcat_5.26.patch b/pmtools-2.0.0-t_pfcat_5.26.patch
new file mode 100644
index 0000000..6fa0cc2
--- /dev/null
+++ b/pmtools-2.0.0-t_pfcat_5.26.patch
@@ -0,0 +1,15 @@
+Description: perlfunc.pod formatting changed in 5.26. Adjust regexp in test.
+Origin: vendor
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2017-06-24
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=122210
+Bug: https://rt.cpan.org/Ticket/Display.html?id=122210
+
+--- a/t/pfcat.t
++++ b/t/pfcat.t
+@@ -16,4 +16,4 @@
+ };
+ 
+ is($?,        0,                                                     "pfcat 
runs");
+-like($output, qr/There is no .*systell.* function.\s+Use .*sysseek/, "catted 
module function");
++like($output, qr/There is no .*systell.* function.\s+Use\s.*sysseek/, "catted 
module function");
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-pmtools.git/commit/?h=master&id=93ad8dabaed42fff03d8020d1da4224e3b4b9199
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to