Fix building on Perl without "." in @INC

epel9
Petr Písař 8 years ago
parent c176b7be69
commit 4f2d913800

@ -0,0 +1,12 @@
The patch attached should address the problem described in this RT and prepare Test-SubCalls for perl-5.26.0 readiness. Please review.
Thank you very much.
Jim Keenan
--- Makefile.PL.orig 2017-03-31 09:05:12.495038191 -0400
+++ Makefile.PL 2017-03-31 09:05:22.634214621 -0400
@@ -1,3 +1,4 @@
+use lib '.';
use inc::Module::Install::DSL 0.83;
all_from lib/Test/SubCalls.pm

@ -1,11 +1,13 @@
Name: perl-Test-SubCalls
Version: 1.09
Release: 27%{?dist}
Release: 28%{?dist}
Summary: Track the number of times subs are called
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-SubCalls/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-SubCalls-%{version}.tar.gz
# Fix building on Perl without "." in @INC, CPAN RT#120411
Patch0: Test-SubCalls-1.09-inc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildRequires: perl-generators
@ -16,6 +18,7 @@ BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec) >= 0.80
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Hook::LexWrap) >= 0.20
BuildRequires: perl(lib)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester) >= 1.02
BuildRequires: perl(Test::More) >= 0.42
@ -36,6 +39,7 @@ subroutine deep within the code was called a specific number of times.
%prep
%setup -q -n Test-SubCalls-%{version}
%patch0 -p0
%build
perl Makefile.PL INSTALLDIRS=vendor
@ -59,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/Test::SubCalls.3pm*
%changelog
* Tue May 16 2017 Petr Pisar <ppisar@redhat.com> - 1.09-28
- Fix building on Perl without "." in @INC (CPAN RT#120411)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save