From 72e19df1e92b765567e895783071891cbb67456f Mon Sep 17 00:00:00 2001 From: Petr Písař Date: May 16 2017 12:40:22 +0000 Subject: Fix building on Perl without "." in @INC --- diff --git a/Test-Mock-LWP-0.08-Fix-building-on-Perl-without-.-in-INC.patch b/Test-Mock-LWP-0.08-Fix-building-on-Perl-without-.-in-INC.patch new file mode 100644 index 0000000..a004a40 --- /dev/null +++ b/Test-Mock-LWP-0.08-Fix-building-on-Perl-without-.-in-INC.patch @@ -0,0 +1,28 @@ +From 8f2f1cd4a2999d6b3b611e64681129b0ce19c9e6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 16 May 2017 14:36:11 +0200 +Subject: [PATCH] Fix building on Perl without "." in @INC +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.PL b/Makefile.PL +index 66617a4..b798bbe 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,6 +1,7 @@ + #!/usr/bin/perl -w + use warnings; + use strict; ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + + name 'Test-Mock-LWP'; +-- +2.9.4 + diff --git a/perl-Test-Mock-LWP.spec b/perl-Test-Mock-LWP.spec index 7ae31bf..19f5c14 100644 --- a/perl-Test-Mock-LWP.spec +++ b/perl-Test-Mock-LWP.spec @@ -1,11 +1,13 @@ Name: perl-Test-Mock-LWP Version: 0.08 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Easy mocking of LWP packages License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Mock-LWP/ Source0: http://search.cpan.org/CPAN/authors/id/L/LU/LUKEC/Test-Mock-LWP-%{version}.tar.gz +# Fix building on Perl without "." in @INC, CPAN RT#121706 +Patch0: Test-Mock-LWP-0.08-Fix-building-on-Perl-without-.-in-INC.patch BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) @@ -29,6 +31,7 @@ A mocking library for testing of code based around LWP. %prep %setup -q -n Test-Mock-LWP-%{version} +%patch0 -p1 %build @@ -56,6 +59,9 @@ make test %changelog +* Tue May 16 2017 Petr Pisar - 0.08-9 +- Fix building on Perl without "." in @INC (CPAN RT#121706) + * Sat Feb 11 2017 Fedora Release Engineering - 0.08-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild