Fix building on Perl without '.' in @INC (CPAN RT#121768)

f38
Jitka Plesnikova 8 years ago
parent d0f8b9d45a
commit 18ee2cef15

@ -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';

@ -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 <jplesnik@redhat.com> - 1.02-24
- Fix building on Perl without '.' in @INC
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.02-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save