From 6cc9a14268d634cc4a87e48df6fb988b2e0d3baa Mon Sep 17 00:00:00 2001 From: Petr Písař Date: May 18 2017 10:28:46 +0000 Subject: Fix building on Perl without "." in @IN --- diff --git a/Test-LoadAllModules-0.022-Fix-building-on-Perl-without-.-in-INC.patch b/Test-LoadAllModules-0.022-Fix-building-on-Perl-without-.-in-INC.patch new file mode 100644 index 0000000..8894bf5 --- /dev/null +++ b/Test-LoadAllModules-0.022-Fix-building-on-Perl-without-.-in-INC.patch @@ -0,0 +1,25 @@ +From b02ba0af275276cdec17f685d6449a8d76a33599 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 18 May 2017 11:24:26 +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 7e2f8a1..69a8fe3 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,3 +1,4 @@ ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + name 'Test-LoadAllModules'; + all_from 'lib/Test/LoadAllModules.pm'; +-- +2.9.4 + diff --git a/perl-Test-LoadAllModules.spec b/perl-Test-LoadAllModules.spec index 61c2c7a..ef540c2 100644 --- a/perl-Test-LoadAllModules.spec +++ b/perl-Test-LoadAllModules.spec @@ -1,11 +1,13 @@ Name: perl-Test-LoadAllModules Version: 0.022 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Do use_ok for modules in search path License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-LoadAllModules/ Source0: http://www.cpan.org/modules/by-module/Test/Test-LoadAllModules-%{version}.tar.gz +# Fix building on Perl without "." in @INC, CPAN RT#121765 +Patch0: Test-LoadAllModules-0.022-Fix-building-on-Perl-without-.-in-INC.patch BuildArch: noarch BuildRequires: perl BuildRequires: perl-generators @@ -39,6 +41,7 @@ Test::LoadAllModules do use_ok for modules in search_path. %prep %setup -q -n Test-LoadAllModules-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -60,6 +63,9 @@ make test %{_mandir}/man3/* %changelog +* Thu May 18 2017 Petr Pisar - 0.022-8 +- Fix building on Perl without "." in @INC (CPAN RT#121765) + * Sat Feb 11 2017 Fedora Release Engineering - 0.022-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild