From f069abc435a9aa1e6cf08527f9fdbef2ab93454b Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <[email protected]>
Date: Mon, 29 May 2017 08:47:37 +0200
Subject: Fix building on Perl without '.' in @INC (CPAN RT#121925)

---
 ...s-TimeStamp-0.14-Fix-building-on-Perl-without-dot-in-INC.patch | 8 ++++++++
 perl-DBIx-Class-TimeStamp.spec                                    | 7 ++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 
DBIx-Class-TimeStamp-0.14-Fix-building-on-Perl-without-dot-in-INC.patch

diff --git 
a/DBIx-Class-TimeStamp-0.14-Fix-building-on-Perl-without-dot-in-INC.patch 
b/DBIx-Class-TimeStamp-0.14-Fix-building-on-Perl-without-dot-in-INC.patch
new file mode 100644
index 0000000..fa48f98
--- /dev/null
+++ b/DBIx-Class-TimeStamp-0.14-Fix-building-on-Perl-without-dot-in-INC.patch
@@ -0,0 +1,8 @@
+diff -up DBIx-Class-TimeStamp-0.14/Makefile.PL.orig 
DBIx-Class-TimeStamp-0.14/Makefile.PL
+--- DBIx-Class-TimeStamp-0.14/Makefile.PL.orig 2017-05-29 08:40:29.811913108 
+0200
++++ DBIx-Class-TimeStamp-0.14/Makefile.PL      2017-05-29 08:41:08.306689907 
+0200
+@@ -1,3 +1,4 @@
++BEGIN { push @INC, '.'; }
+ use inc::Module::Install 1.00;
+ 
+ perl_version '5.008001';
diff --git a/perl-DBIx-Class-TimeStamp.spec b/perl-DBIx-Class-TimeStamp.spec
index 0ab6e05..d44f3df 100644
--- a/perl-DBIx-Class-TimeStamp.spec
+++ b/perl-DBIx-Class-TimeStamp.spec
@@ -1,10 +1,11 @@
 Name:           perl-DBIx-Class-TimeStamp
 Version:        0.14
-Release:        17%{?dist}
+Release:        18%{?dist}
 Summary:        DBIx::Class extension to update and create date and time based 
fields
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/DBIx-Class-TimeStamp/
 Source0:        
http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/DBIx-Class-TimeStamp-%{version}.tar.gz
+Patch0:         
DBIx-Class-TimeStamp-0.14-Fix-building-on-Perl-without-dot-in-INC.patch
 BuildArch:      noarch
 # Build
 BuildRequires:  make
@@ -62,6 +63,7 @@ update and create date and time based fields in a table.
 
 %prep
 %setup -q -n DBIx-Class-TimeStamp-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
@@ -80,6 +82,9 @@ TEST_POD=1 make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon May 29 2017 Jitka Plesnikova <[email protected]> - 0.14-18
+- Fix building on Perl without '.' in @INC
+
 * Sat Feb 11 2017 Fedora Release Engineering <[email protected]> - 
0.14-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-DBIx-Class-TimeStamp.git/commit/?h=master&id=f069abc435a9aa1e6cf08527f9fdbef2ab93454b
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to