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

---
 ...ader-0.07046-Fix-building-on-Perl-without-dot-in-INC.patch | 11 +++++++++++
 perl-DBIx-Class-Schema-Loader.spec                            |  7 ++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 
DBIx-Class-Schema-Loader-0.07046-Fix-building-on-Perl-without-dot-in-INC.patch

diff --git 
a/DBIx-Class-Schema-Loader-0.07046-Fix-building-on-Perl-without-dot-in-INC.patch
 
b/DBIx-Class-Schema-Loader-0.07046-Fix-building-on-Perl-without-dot-in-INC.patch
new file mode 100644
index 0000000..2172f89
--- /dev/null
+++ 
b/DBIx-Class-Schema-Loader-0.07046-Fix-building-on-Perl-without-dot-in-INC.patch
@@ -0,0 +1,11 @@
+diff -up DBIx-Class-Schema-Loader-0.07046/Makefile.PL.orig 
DBIx-Class-Schema-Loader-0.07046/Makefile.PL
+--- DBIx-Class-Schema-Loader-0.07046/Makefile.PL.orig  2017-05-26 
15:32:33.751258460 +0200
++++ DBIx-Class-Schema-Loader-0.07046/Makefile.PL       2017-05-26 
15:33:57.505773731 +0200
+@@ -2,6 +2,7 @@ use warnings;
+ use strict;
+ 
+ use 5.008001;
++BEGIN { push @INC, '.'; }
+ use inc::Module::Install 1.00;
+ 
+ use Getopt::Long();
diff --git a/perl-DBIx-Class-Schema-Loader.spec 
b/perl-DBIx-Class-Schema-Loader.spec
index ede2367..f319fc0 100644
--- a/perl-DBIx-Class-Schema-Loader.spec
+++ b/perl-DBIx-Class-Schema-Loader.spec
@@ -1,11 +1,12 @@
 Name:           perl-DBIx-Class-Schema-Loader
 Summary:        Dynamic definition of a DBIx::Class::Schema
 Version:        0.07046
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 Source0:        
http://search.cpan.org/CPAN/authors/id/I/IL/ILMARI/DBIx-Class-Schema-Loader-%{version}.tar.gz
 URL:            http://search.cpan.org/dist/DBIx-Class-Schema-Loader/
+Patch0:         
DBIx-Class-Schema-Loader-0.07046-Fix-building-on-Perl-without-dot-in-INC.patch
 BuildArch:      noarch
 # Build
 BuildRequires:  findutils
@@ -101,6 +102,7 @@ and setting up the columns, primary keys, and relationships.
 
 %prep
 %setup -q -n DBIx-Class-Schema-Loader-%{version}
+%patch0 -p1
 find t -type f -print0 | xargs -0 sed -i '1s,#!.*perl,#!%{__perl},'
 
 %build
@@ -122,6 +124,9 @@ make test
 %{_bindir}/*
 
 %changelog
+* Fri May 26 2017 Jitka Plesnikova <jples...@redhat.com> - 0.07046-3
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.07046-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-DBIx-Class-Schema-Loader.git/commit/?h=master&id=b69a9122152e3a17d1dc3dc01da5229e06baec30
_______________________________________________
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