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

This commit is contained in:
Petr Písař 2013-05-22 15:13:19 +02:00
parent d70e5361e0
commit c499313742
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 273067dbd3e8bfc4b26849a4615c3f44f54e7029 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@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

View File

@ -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 <ppisar@redhat.com> - 0.23-2
- Do not put ./lib into @INC by pod_cover tool
* Thu May 02 2013 Petr Šabata <contyk@redhat.com> - 0.23-1
- 0.23 bump