Fix building on Perl without "." in @INC

epel9
Petr Písař 8 years ago
parent bfd826d12b
commit cd2fc30322

@ -0,0 +1,25 @@
From d43f322d24db7505125624a1b137a3d0e4253a2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 16 May 2017 14:24:13 +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ř <ppisar@redhat.com>
---
Makefile.PL | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.PL b/Makefile.PL
index ebceb46..d4c9ffa 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,3 +1,4 @@
+BEGIN { push @INC, '.'; }
use inc::Module::Install;
name 'Test-Object';
--
2.9.4

@ -1,12 +1,14 @@
Name: perl-Test-Object Name: perl-Test-Object
Version: 0.07 Version: 0.07
Release: 26%{?dist} Release: 27%{?dist}
Summary: Thoroughly testing objects via registered handlers Summary: Thoroughly testing objects via registered handlers
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-Object/ URL: http://search.cpan.org/dist/Test-Object/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Object-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Object-%{version}.tar.gz
# Fix building on Perl without "." in @INC, CPAN RT#120413
Patch0: Test-Object-0.07-Fix-building-on-Perl-without-.-in-INC.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
@ -33,6 +35,7 @@ all of the classes in its inheritance tree in one single call.
%prep %prep
%setup -q -n Test-Object-%{version} %setup -q -n Test-Object-%{version}
%patch0 -p1
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
@ -63,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue May 16 2017 Petr Pisar <ppisar@redhat.com> - 0.07-27
- Fix building on Perl without "." in @INC (CPAN RT#120413)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.07-26 * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.07-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save