diff --git a/Declare-Constraints-Simple-0.03-Fix-building-on-Perl-without-dot-in-INC.patch b/Declare-Constraints-Simple-0.03-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..6073d4d --- /dev/null +++ b/Declare-Constraints-Simple-0.03-Fix-building-on-Perl-without-dot-in-INC.patch @@ -0,0 +1,8 @@ +diff -up Declare-Constraints-Simple-0.03/Makefile.PL.orig Declare-Constraints-Simple-0.03/Makefile.PL +--- Declare-Constraints-Simple-0.03/Makefile.PL.orig 2017-05-16 15:25:25.495090362 +0200 ++++ Declare-Constraints-Simple-0.03/Makefile.PL 2017-05-16 15:25:39.848030454 +0200 +@@ -1,3 +1,4 @@ ++BEGIN { push @INC, '.'; } + use inc::Module::Install; + use warnings; + use strict; diff --git a/perl-Declare-Constraints-Simple.spec b/perl-Declare-Constraints-Simple.spec index 1d79347..d77e83d 100644 --- a/perl-Declare-Constraints-Simple.spec +++ b/perl-Declare-Constraints-Simple.spec @@ -3,12 +3,13 @@ Name: perl-Declare-Constraints-Simple Version: 0.03 -Release: 29%{?dist} +Release: 30%{?dist} Summary: Declarative Validation of Data Structures License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Declare-Constraints-Simple/ Source0: http://search.cpan.org/CPAN/authors/id/P/PH/PHAYLON/Declare-Constraints-Simple-%{version}.tar.gz +Patch0: Declare-Constraints-Simple-0.03-Fix-building-on-Perl-without-dot-in-INC.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # Module Build @@ -57,6 +58,7 @@ declarative keywords in the importing namespace. %prep %setup -q -n Declare-Constraints-Simple-%{version} +%patch0 -p1 # Filter unwanted Requires (prior to rpm 4.9) %if ! %{rpm49} @@ -98,6 +100,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Declare::Constraints::Simple::Result.3* %changelog +* Tue May 16 2017 Jitka Plesnikova - 0.03-30 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.03-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild