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

epel9
Jitka Plesnikova 8 years ago
parent 5cd3658e49
commit 8047b86e7b

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

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

Loading…
Cancel
Save