From c9eab4dad2689312243e73f221c20a56455a0eb3 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 16 May 2017 11:58:24 +0200 Subject: [PATCH] Fix building on Perl without '.' in @INC (CPAN RT#120820) --- perl-Class-Trigger.spec | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/perl-Class-Trigger.spec b/perl-Class-Trigger.spec index 6f186cb..5c63840 100644 --- a/perl-Class-Trigger.spec +++ b/perl-Class-Trigger.spec @@ -1,6 +1,6 @@ Name: perl-Class-Trigger Version: 0.14 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Mixin to add / call inheritable triggers Group: Development/Libraries License: GPL+ or Artistic @@ -9,16 +9,24 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Class-Trigg BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl(base) BuildRequires: perl(Carp) -BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Path) -BuildRequires: perl(File::Spec) -BuildRequires: perl(IO::Handle) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Include) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::TestBase) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(IO::Scalar) +BuildRequires: perl(IO::WrapTie) BuildRequires: perl(lib) +BuildRequires: perl(strict) BuildRequires: perl(Test::More) +BuildRequires: perl(vars) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description @@ -26,6 +34,9 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %prep %setup -q -n Class-Trigger-%{version} +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -52,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue May 16 2017 Jitka Plesnikova - 0.14-20 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.14-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild