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

f38
Jitka Plesnikova 8 years ago
parent 33c15d9805
commit b69a912215

@ -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();

@ -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 <jplesnik@redhat.com> - 0.07046-3
- Fix building on Perl without '.' in @INC
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.07046-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

Loading…
Cancel
Save