Fix building on Perl without '.' in @INC (CPAN RT#120827)

epel9
Jitka Plesnikova 8 years ago
parent 31b826b783
commit 76b879bd20

@ -0,0 +1,8 @@
diff -up DBIx-Class-0.082840/Makefile.PL.orig DBIx-Class-0.082840/Makefile.PL
--- DBIx-Class-0.082840/Makefile.PL.orig 2017-05-26 10:29:28.090609173 +0200
+++ DBIx-Class-0.082840/Makefile.PL 2017-05-26 10:29:52.467466333 +0200
@@ -1,3 +1,4 @@
+BEGIN { push @INC, '.'; }
use strict;
use warnings;

@ -1,7 +1,7 @@
Name: perl-DBIx-Class Name: perl-DBIx-Class
Summary: Extensible and flexible object <-> relational mapper Summary: Extensible and flexible object <-> relational mapper
Version: 0.082840 Version: 0.082840
Release: 4%{?dist} Release: 5%{?dist}
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/DBIx-Class-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/DBIx-Class-%{version}.tar.gz
@ -11,6 +11,8 @@ URL: http://search.cpan.org/dist/DBIx-Class/
Patch0: DBIx-Class-0.082840-Fix-test-RT117271.patch Patch0: DBIx-Class-0.082840-Fix-test-RT117271.patch
# Disable a test incompatible with sqlite >= 3.14, CPAN RT#119845 # Disable a test incompatible with sqlite >= 3.14, CPAN RT#119845
Patch1: DBIx-Class-0.082840-sqlite-3.14.patch Patch1: DBIx-Class-0.082840-sqlite-3.14.patch
# Fix building on Perl without '.' in @INC
Patch2: DBIx-Class-0.082840-Fix-building-on-Perl-without-dot-in-INC.patch
BuildArch: noarch BuildArch: noarch
# Build # Build
BuildRequires: coreutils BuildRequires: coreutils
@ -274,6 +276,7 @@ DISTINCT, GROUP BY and HAVING support.
%setup -q -n DBIx-Class-%{version} %setup -q -n DBIx-Class-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1
chmod -c +x script/* chmod -c +x script/*
# skip dbic_pretty.t when bootstrapping # skip dbic_pretty.t when bootstrapping
%if 0%{?perl_bootstrap} %if 0%{?perl_bootstrap}
@ -304,6 +307,9 @@ make test
%{_mandir}/man[13]/* %{_mandir}/man[13]/*
%changelog %changelog
* Fri May 26 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.082840-5
- Fix building on Perl without '.' in @INC
* Tue Feb 28 2017 Petr Pisar <ppisar@redhat.com> - 0.082840-4 * Tue Feb 28 2017 Petr Pisar <ppisar@redhat.com> - 0.082840-4
- Disable a test incompatible with sqlite >= 3.14 (CPAN RT#119845) - Disable a test incompatible with sqlite >= 3.14 (CPAN RT#119845)

Loading…
Cancel
Save