diff --git a/CGI-Compile-0.22-Fix-building-on-Perl-without-dot-in-INC.patch b/CGI-Compile-0.22-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..889a358 --- /dev/null +++ b/CGI-Compile-0.22-Fix-building-on-Perl-without-dot-in-INC.patch @@ -0,0 +1,79 @@ +diff -up CGI-Compile-0.22/t/coderef_args.t.orig CGI-Compile-0.22/t/coderef_args.t +--- CGI-Compile-0.22/t/coderef_args.t.orig 2017-05-15 17:50:25.270157014 +0200 ++++ CGI-Compile-0.22/t/coderef_args.t 2017-05-15 17:51:56.810752987 +0200 +@@ -1,4 +1,5 @@ + use Test::More; ++BEGIN { push @INC, '.'; } + use t::Capture; + use CGI::Compile; + +diff -up CGI-Compile-0.22/t/compile.t.orig CGI-Compile-0.22/t/compile.t +--- CGI-Compile-0.22/t/compile.t.orig 2017-05-15 17:50:25.273157000 +0200 ++++ CGI-Compile-0.22/t/compile.t 2017-05-15 17:52:19.684652030 +0200 +@@ -1,5 +1,6 @@ + use Test::More; + use Test::Requires qw(CGI); ++BEGIN { push @INC, '.'; } + use t::Capture; + use CGI::Compile; + #no warnings 'signal'; # for MSWin32 +diff -up CGI-Compile-0.22/t/data_end.t.orig CGI-Compile-0.22/t/data_end.t +--- CGI-Compile-0.22/t/data_end.t.orig 2017-05-15 17:50:25.274156996 +0200 ++++ CGI-Compile-0.22/t/data_end.t 2017-05-15 17:52:28.119614801 +0200 +@@ -1,5 +1,6 @@ + use Test::More; + use CGI::Compile; ++BEGIN { push @INC, '.'; } + use t::Capture; + + { +diff -up CGI-Compile-0.22/t/local-SIG.t.orig CGI-Compile-0.22/t/local-SIG.t +--- CGI-Compile-0.22/t/local-SIG.t.orig 2017-05-15 17:50:25.282156961 +0200 ++++ CGI-Compile-0.22/t/local-SIG.t 2017-05-15 17:52:40.230561347 +0200 +@@ -1,5 +1,6 @@ + #!perl + ++BEGIN { push @INC, '.'; } + use t::Capture; + use CGI::Compile; + use POSIX qw(:signal_h); +diff -up CGI-Compile-0.22/t/source.t.orig CGI-Compile-0.22/t/source.t +--- CGI-Compile-0.22/t/source.t.orig 2017-05-15 17:50:25.278156978 +0200 ++++ CGI-Compile-0.22/t/source.t 2017-05-15 17:52:33.065592971 +0200 +@@ -1,5 +1,6 @@ + use Test::More; + use CGI::Compile; ++BEGIN { push @INC, '.'; } + use t::Capture; + + { +diff -up CGI-Compile-0.22/t/source_filter.t.orig CGI-Compile-0.22/t/source_filter.t +--- CGI-Compile-0.22/t/source_filter.t.orig 2017-05-15 17:50:25.268157022 +0200 ++++ CGI-Compile-0.22/t/source_filter.t 2017-05-15 17:51:49.959783224 +0200 +@@ -1,5 +1,6 @@ + use Test::More; + use Test::Requires qw(Switch); ++BEGIN { push @INC, '.'; } + use t::Capture; + use CGI::Compile; + +diff -up CGI-Compile-0.22/t/warnings.t.orig CGI-Compile-0.22/t/warnings.t +--- CGI-Compile-0.22/t/warnings.t.orig 2017-05-15 17:50:25.271157009 +0200 ++++ CGI-Compile-0.22/t/warnings.t 2017-05-15 17:52:12.349684404 +0200 +@@ -1,4 +1,5 @@ + use Test::More; ++BEGIN { push @INC, '.'; } + use t::Capture; + use CGI::Compile; + +diff -up CGI-Compile-0.22/t/exit.t.orig CGI-Compile-0.22/t/exit.t +--- CGI-Compile-0.22/t/exit.t.orig 2017-05-15 18:01:47.350253483 +0200 ++++ CGI-Compile-0.22/t/exit.t 2017-05-15 18:02:06.805172612 +0200 +@@ -1,6 +1,7 @@ + use strict; + use Test::More tests => 2; + use CGI::Compile; ++BEGIN { push @INC, '.'; } + use t::Capture; + use lib "t"; + use Exit; diff --git a/perl-CGI-Compile.spec b/perl-CGI-Compile.spec index 632eaa5..2596d8c 100644 --- a/perl-CGI-Compile.spec +++ b/perl-CGI-Compile.spec @@ -1,13 +1,14 @@ Name: perl-CGI-Compile Summary: Compile .cgi scripts to a code reference like ModPerl::Registry Version: 0.22 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ or Artistic Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/CGI-Compile-%{version}.tar.gz URL: http://search.cpan.org/dist/CGI-Compile Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch +Patch0: CGI-Compile-0.22-Fix-building-on-Perl-without-dot-in-INC.patch BuildRequires: perl BuildRequires: perl-generators @@ -50,10 +51,11 @@ ready to run on a persistent environment. %prep %setup -q -n CGI-Compile-%{version} +%patch0 -p1 -b .inc + sed -i 's/\r//' t/data_crlf.cgi t/end_crlf.cgi sed -i -e '1s,#!.*perl,#!%{__perl},' t/*.t - %build %{__perl} Build.PL --installdirs vendor ./Build @@ -72,6 +74,9 @@ sed -i -e '1s,#!.*perl,#!%{__perl},' t/*.t %{_mandir}/man3/*.3* %changelog +* Mon May 15 2017 Jitka Plesnikova - 0.22-2 +- Fix building on Perl without '.' in @INC + * Mon Feb 06 2017 Emmanuel Seyman - 0.22-1 - Update to 0.22