From 18ee2cef15424da9c8cbdbe1a0af1a36f1131f1e Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Thu, 18 May 2017 12:34:15 +0200
Subject: Fix building on Perl without '.' in @INC (CPAN RT#121768)

---
 ...-Constrain-1.02-Fix-building-on-Perl-without-dot-in-INC.patch | 9 +++++++++
 perl-Image-Math-Constrain.spec                                   | 7 ++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 
Image-Math-Constrain-1.02-Fix-building-on-Perl-without-dot-in-INC.patch

diff --git 
a/Image-Math-Constrain-1.02-Fix-building-on-Perl-without-dot-in-INC.patch 
b/Image-Math-Constrain-1.02-Fix-building-on-Perl-without-dot-in-INC.patch
new file mode 100644
index 0000000..7b2840e
--- /dev/null
+++ b/Image-Math-Constrain-1.02-Fix-building-on-Perl-without-dot-in-INC.patch
@@ -0,0 +1,9 @@
+diff -up Image-Math-Constrain-1.02/Makefile.PL.orig 
Image-Math-Constrain-1.02/Makefile.PL
+--- Image-Math-Constrain-1.02/Makefile.PL.orig 2017-05-18 12:22:53.157260054 
+0200
++++ Image-Math-Constrain-1.02/Makefile.PL      2017-05-18 12:30:17.112318821 
+0200
+@@ -1,3 +1,5 @@
++BEGIN { push @INC, '.'; }
++
+ use inc::Module::Install 0.76;
+ 
+ all_from      'lib/Image/Math/Constrain.pm';
diff --git a/perl-Image-Math-Constrain.spec b/perl-Image-Math-Constrain.spec
index 04e102b..ad3e9d6 100644
--- a/perl-Image-Math-Constrain.spec
+++ b/perl-Image-Math-Constrain.spec
@@ -1,10 +1,11 @@
 Name:           perl-Image-Math-Constrain
 Version:        1.02
-Release:        23%{?dist}
+Release:        24%{?dist}
 Summary:        Scaling math used in image size constraining (such as 
thumbnails)
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Image-Math-Constrain/
 Source0:        
http://www.cpan.org/authors/id/A/AD/ADAMK/Image-Math-Constrain-%{version}.tar.gz
+Patch0:         
Image-Math-Constrain-1.02-Fix-building-on-Perl-without-dot-in-INC.patch
 BuildArch:      noarch
 # Build
 BuildRequires:  make
@@ -39,6 +40,7 @@ down proportionally so that it fits within the constraints.
 
 %prep
 %setup -q -n Image-Math-Constrain-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@@ -58,6 +60,9 @@ make test AUTOMATED_TESTING=1
 %{_mandir}/man3/*
 
 %changelog
+* Thu May 18 2017 Jitka Plesnikova <jples...@redhat.com> - 1.02-24
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
1.02-23
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Image-Math-Constrain.git/commit/?h=master&id=18ee2cef15424da9c8cbdbe1a0af1a36f1131f1e
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to