diff --git a/Text-Template-Simple-0.90-Fix-building-on-Perl-without-.-in-INC.patch b/Text-Template-Simple-0.90-Fix-building-on-Perl-without-.-in-INC.patch new file mode 100644 index 0000000..9000317 --- /dev/null +++ b/Text-Template-Simple-0.90-Fix-building-on-Perl-without-.-in-INC.patch @@ -0,0 +1,29 @@ +From f9b0ae57d3eda068d9b2436743881ffdd60fff7f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 16 May 2017 11:23:08 +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ř +--- + builder/lib/Build/Spec.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/builder/lib/Build/Spec.pm b/builder/lib/Build/Spec.pm +index 394132a..4605be2 100644 +--- a/builder/lib/Build/Spec.pm ++++ b/builder/lib/Build/Spec.pm +@@ -16,7 +16,7 @@ BEGIN { + sub spec { + my %opt = @_; + my $file = 'SPEC'; +- my $spec = do $file; ++ my $spec = do "./$file"; + + my %rv = + $@ ? do { croak $@ =~ OS_ERROR ? $@ : "Couldn't parse $file: $@" } +-- +2.9.4 + diff --git a/perl-Text-Template-Simple.spec b/perl-Text-Template-Simple.spec index 0117ddf..8a629df 100644 --- a/perl-Text-Template-Simple.spec +++ b/perl-Text-Template-Simple.spec @@ -1,10 +1,12 @@ Name: perl-Text-Template-Simple Version: 0.90 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Simple text template engine License: GPL+ or Artistic URL: http://search.cpan.org/dist/Text-Template-Simple/ Source0: http://www.cpan.org/authors/id/B/BU/BURAK/Text-Template-Simple-%{version}.tar.gz +# Fix building on Perl without "." in @INC, CPAN RT#121697 +Patch0: Text-Template-Simple-0.90-Fix-building-on-Perl-without-.-in-INC.patch BuildArch: noarch # Build BuildRequires: perl @@ -66,6 +68,7 @@ Requires: perl(Text::Table) >= 1.107 %prep %setup -q -n Text-Template-Simple-%{version} +%patch0 -p1 %build perl Build.PL installdirs=vendor @@ -87,6 +90,9 @@ perl Build.PL installdirs=vendor %{perl_vendorlib}/Text* %changelog +* Tue May 16 2017 Petr Pisar - 0.90-3 +- Fix building on Perl without "." in @INC (CPAN RT#121697) + * Sat Feb 11 2017 Fedora Release Engineering - 0.90-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild