commit c4993137423389ed58a3a4e030c0c4984098afca
Author: Petr Písař <ppi...@redhat.com>
Date:   Wed May 22 15:13:19 2013 +0200

    Do not put ./lib into @INC by pod_cover tool

 ...age-0.23-Do-not-search-.-lib-by-pod_cover.patch |   25 ++++++++++++++++++++
 perl-Pod-Coverage.spec                             |    8 +++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/Pod-Coverage-0.23-Do-not-search-.-lib-by-pod_cover.patch 
b/Pod-Coverage-0.23-Do-not-search-.-lib-by-pod_cover.patch
new file mode 100644
index 0000000..20d69f9
--- /dev/null
+++ b/Pod-Coverage-0.23-Do-not-search-.-lib-by-pod_cover.patch
@@ -0,0 +1,25 @@
+From 273067dbd3e8bfc4b26849a4615c3f44f54e7029 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
+Date: Wed, 22 May 2013 15:05:54 +0200
+Subject: [PATCH] Do not search ./lib by pod_cover
+
+<https://rt.cpan.org/Public/Bug/Display.html?id=85540>
+---
+ bin/pod_cover | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/bin/pod_cover b/bin/pod_cover
+index c11b2ff..94ea7aa 100644
+--- a/bin/pod_cover
++++ b/bin/pod_cover
+@@ -3,7 +3,6 @@
+ # Run this to get a coverage analysis of the embedded documentation
+ 
+ use Pod::Coverage;
+-use lib 'lib';                        # to test distribution inside './lib'
+ use strict;
+ 
+ print "Pod coverage analysis v1.00 (C) by Tels 2001.\n";
+-- 
+1.8.1.4
+
diff --git a/perl-Pod-Coverage.spec b/perl-Pod-Coverage.spec
index 0c30760..eb7e961 100644
--- a/perl-Pod-Coverage.spec
+++ b/perl-Pod-Coverage.spec
@@ -1,11 +1,13 @@
 Name:           perl-Pod-Coverage
 Version:        0.23
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Checks if the documentation of a module is comprehensive
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Pod-Coverage/
 Source0:        
http://www.cpan.org/authors/id/R/RC/RCLAMP/Pod-Coverage-%{version}.tar.gz
+# Make pod_cover more secure, CPAN RT#85540
+Patch0:         Pod-Coverage-0.23-Do-not-search-.-lib-by-pod_cover.patch
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl(B)
@@ -43,6 +45,7 @@ module is comprehensive.
 
 %prep
 %setup -q -n Pod-Coverage-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
@@ -66,6 +69,9 @@ make test
 %{_mandir}/man3/Pod::Coverage::Overloader.3pm*
 
 %changelog
+* Wed May 22 2013 Petr Pisar <ppi...@redhat.com> - 0.23-2
+- Do not put ./lib into @INC by pod_cover tool
+
 * Thu May 02 2013 Petr Šabata <con...@redhat.com> - 0.23-1
 - 0.23 bump
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to