From 7bc819fcb75e7c92409269a25603dc1ea72544bc Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Fri, 26 May 2017 14:09:16 +0200
Subject: Fix building on Perl without '.' in @INC (CPAN RT#121904)

---
 ...urePerl-0.53-Fix-building-on-Perl-without-dot-in-INC.patch | 11 +++++++++++
 perl-Git-PurePerl.spec                                        |  7 ++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 
Git-PurePerl-0.53-Fix-building-on-Perl-without-dot-in-INC.patch

diff --git a/Git-PurePerl-0.53-Fix-building-on-Perl-without-dot-in-INC.patch 
b/Git-PurePerl-0.53-Fix-building-on-Perl-without-dot-in-INC.patch
new file mode 100644
index 0000000..6fdcc27
--- /dev/null
+++ b/Git-PurePerl-0.53-Fix-building-on-Perl-without-dot-in-INC.patch
@@ -0,0 +1,11 @@
+diff -up Git-PurePerl-0.53/Makefile.PL.orig Git-PurePerl-0.53/Makefile.PL
+--- Git-PurePerl-0.53/Makefile.PL.orig 2017-05-26 14:02:38.991261152 +0200
++++ Git-PurePerl-0.53/Makefile.PL      2017-05-26 14:02:57.406165332 +0200
+@@ -1,6 +1,7 @@
+ #!perl
+ use strict;
+ use warnings;
++BEGIN { push @INC, '.'; }
+ use inc::Module::Install 0.91;
+ 
+ name 'Git-PurePerl';
diff --git a/perl-Git-PurePerl.spec b/perl-Git-PurePerl.spec
index 56df5b1..5012182 100644
--- a/perl-Git-PurePerl.spec
+++ b/perl-Git-PurePerl.spec
@@ -1,10 +1,11 @@
 Name:           perl-Git-PurePerl
 Version:        0.53
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Pure Perl interface to Git repositories
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Git-PurePerl/
 Source0:        
http://search.cpan.org/CPAN/authors/id/B/BR/BROQ/Git-PurePerl-%{version}.tar.gz
+Patch0:         Git-PurePerl-0.53-Fix-building-on-Perl-without-dot-in-INC.patch
 BuildArch:      noarch
 # Build
 BuildRequires:  perl
@@ -53,6 +54,7 @@ This module is a Pure Perl interface to Git repositories.
 
 %prep
 %setup -q -n Git-PurePerl-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@@ -71,6 +73,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Fri May 26 2017 Jitka Plesnikova <jples...@redhat.com> - 0.53-3
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.53-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Git-PurePerl.git/commit/?h=master&id=7bc819fcb75e7c92409269a25603dc1ea72544bc
_______________________________________________
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