From 9552254a30bae4eff927ef4966b02515f6ee2bec Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 17 May 2017 17:21:40 +0200 Subject: [PATCH] Fix building on Perl without '.' in @INC (CPAN RT#121750) --- ...-building-on-Perl-without-dot-in-INC.patch | 9 +++++++ perl-Module-Install-Repository.spec | 24 ++++++++++++++----- 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 Module-Install-Repository-0.06-Fix-building-on-Perl-without-dot-in-INC.patch diff --git a/Module-Install-Repository-0.06-Fix-building-on-Perl-without-dot-in-INC.patch b/Module-Install-Repository-0.06-Fix-building-on-Perl-without-dot-in-INC.patch new file mode 100644 index 0000000..a858cf3 --- /dev/null +++ b/Module-Install-Repository-0.06-Fix-building-on-Perl-without-dot-in-INC.patch @@ -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'; diff --git a/perl-Module-Install-Repository.spec b/perl-Module-Install-Repository.spec index 0135d4e..45db13f 100644 --- a/perl-Module-Install-Repository.spec +++ b/perl-Module-Install-Repository.spec @@ -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 - 0.06-14 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.06-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild