Fix building on Perl without '.' in @INC (CPAN RT#121750)
This commit is contained in:
parent
ab1ed03261
commit
9552254a30
@ -0,0 +1,9 @@
|
||||
diff -up Module-Install-Repository-0.06/Makefile.PL.orig Module-Install-Repository-0.06/Makefile.PL
|
||||
--- Module-Install-Repository-0.06/Makefile.PL.orig 2017-05-17 17:11:39.366103327 +0200
|
||||
+++ Module-Install-Repository-0.06/Makefile.PL 2017-05-17 17:11:51.591054522 +0200
|
||||
@@ -1,3 +1,5 @@
|
||||
+BEGIN { push @INC, '.'; }
|
||||
+
|
||||
use inc::Module::Install;
|
||||
name 'Module-Install-Repository';
|
||||
all_from 'lib/Module/Install/Repository.pm';
|
||||
@ -1,23 +1,32 @@
|
||||
Name: perl-Module-Install-Repository
|
||||
Version: 0.06
|
||||
Release: 13%{?dist}
|
||||
Release: 14%{?dist}
|
||||
Summary: Automatically sets repository URL from Svn/Svk/Git checkout
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Module-Install-Repository/
|
||||
Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Module-Install-Repository-%{version}.tar.gz
|
||||
Patch0: Module-Install-Repository-0.06-Fix-building-on-Perl-without-dot-in-INC.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl >= 0:5.005
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(vars)
|
||||
# Tests
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(Path::Class)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Module::Install::Repository is a Module::Install plugin to automatically
|
||||
@ -26,16 +35,16 @@ added to resources under META.yml.
|
||||
|
||||
%prep
|
||||
%setup -q -n Module-Install-Repository-%{version}
|
||||
%patch0 -p1
|
||||
find -type f -exec chmod -x {} +
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
@ -47,6 +56,9 @@ make test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Wed May 17 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-14
|
||||
- Fix building on Perl without '.' in @INC
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user