From 4c2a608e31ccadd4632c703c2398fe6e2fcf774a Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Fri, 26 May 2017 13:37:43 +0200
Subject: Fix building on Perl without '.' in @INC (CPAN RT#121172)

---
 ...estDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch | 8 ++++++++
 perl-DBICx-TestDatabase.spec                                      | 8 +++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 
DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch

diff --git 
a/DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch 
b/DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch
new file mode 100644
index 0000000..10e0a28
--- /dev/null
+++ b/DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch
@@ -0,0 +1,8 @@
+diff -up DBICx-TestDatabase-0.05/Makefile.PL.orig 
DBICx-TestDatabase-0.05/Makefile.PL
+--- DBICx-TestDatabase-0.05/Makefile.PL.orig   2017-05-26 13:28:09.152226934 
+0200
++++ DBICx-TestDatabase-0.05/Makefile.PL        2017-05-26 13:29:02.488834875 
+0200
+@@ -1,3 +1,4 @@
++BEGIN { push @INC, '.'; }
+ use inc::Module::Install;
+ 
+ name 'DBICx-TestDatabase';
diff --git a/perl-DBICx-TestDatabase.spec b/perl-DBICx-TestDatabase.spec
index 0829b8b..7e7250d 100644
--- a/perl-DBICx-TestDatabase.spec
+++ b/perl-DBICx-TestDatabase.spec
@@ -1,13 +1,15 @@
 Name:           perl-DBICx-TestDatabase 
 Summary:        Create a temporary database from a DBIx::Class::Schema 
 Version:        0.05
-Release:        6%{?dist}
+Release:        7%{?dist}
 License:        GPL+ or Artistic 
 Group:          Development/Libraries
 Source0:        
http://search.cpan.org/CPAN/authors/id/J/JR/JROCKWAY/DBICx-TestDatabase-%{version}.tar.gz
 
 URL:            http://search.cpan.org/dist/DBICx-TestDatabase
+Patch0:         
DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch
 BuildArch:      noarch
 # Build
+BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-generators
 BuildRequires:  perl(Config)
@@ -49,6 +51,7 @@ failure, etc.
 
 %prep
 %setup -q -n DBICx-TestDatabase-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@@ -67,6 +70,9 @@ make test
 %{_mandir}/man3/*.3*
 
 %changelog
+* Fri May 26 2017 Jitka Plesnikova <jples...@redhat.com> - 0.05-7
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.05-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-DBICx-TestDatabase.git/commit/?h=master&id=4c2a608e31ccadd4632c703c2398fe6e2fcf774a
_______________________________________________
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