From cbb6c1fec8240f039337dd6acbc6cf4c8d761956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 16 May 2017 14:18:21 +0200 Subject: [PATCH] Fix building on Perl without "." in @INC --- ...ix-building-on-Perl-without-.-in-INC.patch | 25 +++++++++++++++++++ perl-Test-Script-Run.spec | 8 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Test-Script-Run-0.08-Fix-building-on-Perl-without-.-in-INC.patch diff --git a/Test-Script-Run-0.08-Fix-building-on-Perl-without-.-in-INC.patch b/Test-Script-Run-0.08-Fix-building-on-Perl-without-.-in-INC.patch new file mode 100644 index 0000000..f5d8bf0 --- /dev/null +++ b/Test-Script-Run-0.08-Fix-building-on-Perl-without-.-in-INC.patch @@ -0,0 +1,25 @@ +From d775d167582eb5a0a8b26d3c0e91144666dd54b3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 16 May 2017 14:13:42 +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 f75a264..23717c4 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,3 +1,4 @@ ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + + name 'Test-Script-Run'; +-- +2.9.4 + diff --git a/perl-Test-Script-Run.spec b/perl-Test-Script-Run.spec index 4bd613e..ebf58db 100644 --- a/perl-Test-Script-Run.spec +++ b/perl-Test-Script-Run.spec @@ -1,11 +1,13 @@ Name: perl-Test-Script-Run Version: 0.08 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Test the script with run License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Script-Run/ Source0: http://www.cpan.org/authors/id/S/SU/SUNNAVY/Test-Script-Run-%{version}.tar.gz +# Fix building on Perl without "." in @INC, CPAN RT#121704 +Patch0: Test-Script-Run-0.08-Fix-building-on-Perl-without-.-in-INC.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: coreutils @@ -40,6 +42,7 @@ distribution's bin/ directory, if the script path is not absolute. %prep %setup -q -n Test-Script-Run-%{version} +%patch0 -p1 %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -66,6 +69,9 @@ make test %{_mandir}/man3/Test::Script::Run.3pm* %changelog +* Tue May 16 2017 Petr Pisar - 0.08-5 +- Fix building on Perl without "." in @INC (CPAN RT#121704) + * Sat Feb 11 2017 Fedora Release Engineering - 0.08-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild