From 3a63ab22de91eb467d56b7094d9d73327d5fb83a Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 17 May 2017 13:43:42 +0200 Subject: [PATCH] Fix building on Perl without '.' in @INC --- ...36-0.14-Fix-building-on-Perl-without-dot-in-INC.patch | 9 +++++++++ perl-Math-Base36.spec | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Math-Base36-0.14-Fix-building-on-Perl-without-dot-in-INC.patch diff --git a/Math-Base36-0.14-Fix-building-on-Perl-without-dot-in-INC.patch b/Math-Base36-0.14-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..d314bde --- /dev/null +++ b/Math-Base36-0.14-Fix-building-on-Perl-without-dot-in-INC.patch @@ -0,0 +1,9 @@ +diff -up Math-Base36-0.14/Makefile.PL.orig Math-Base36-0.14/Makefile.PL +--- Math-Base36-0.14/Makefile.PL.orig 2017-05-17 13:37:28.574935384 +0200 ++++ Math-Base36-0.14/Makefile.PL 2017-05-17 13:38:24.641720026 +0200 +@@ -1,3 +1,5 @@ ++BEGIN { push @INC, '.'; } ++ + use inc::Module::Install 1.00; + + if ( -e 'MANIFEST.SKIP' ) { diff --git a/perl-Math-Base36.spec b/perl-Math-Base36.spec index e330308..7dd6430 100644 --- a/perl-Math-Base36.spec +++ b/perl-Math-Base36.spec @@ -1,11 +1,12 @@ Name: perl-Math-Base36 Version: 0.14 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Encoding and decoding of base36 strings License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Math-Base36/ Source0: http://www.cpan.org/authors/id/B/BR/BRICAS/Math-Base36-%{version}.tar.gz +Patch0: Math-Base36-0.14-Fix-building-on-Perl-without-dot-in-INC.patch BuildArch: noarch # Build BuildRequires: make @@ -41,6 +42,7 @@ This module converts to and from Base36 numbers (0..9 - A..Z). %prep %setup -q -n Math-Base36-%{version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 @@ -59,6 +61,9 @@ make test %{_mandir}/man3/* %changelog +* Wed May 17 2017 Jitka Plesnikova - 0.14-6 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild