From 8aad3333eb1005b8a9858588a48cc16d48620770 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 23 May 2017 17:17:17 +0200 Subject: [PATCH] Fix building on Perl without '.' in @INC (CPAN RT#120981) --- perl-MouseX-Types.spec | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/perl-MouseX-Types.spec b/perl-MouseX-Types.spec index 9ff2395..7c770cd 100644 --- a/perl-MouseX-Types.spec +++ b/perl-MouseX-Types.spec @@ -1,7 +1,7 @@ Name: perl-MouseX-Types Summary: Organize your Mouse types in libraries Version: 0.06 -Release: 14%{?dist} +Release: 15%{?dist} License: GPL+ or Artistic Group: Development/Libraries Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/MouseX-Types-%{version}.tar.gz @@ -11,12 +11,25 @@ BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(Any::Moose) >= 0.15 -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(FindBin) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(lib) +BuildRequires: perl(Module::Install::AuthorTests) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::Repository) +BuildRequires: perl(Module::Install::WriteAll) BuildRequires: perl(Mouse) >= 0.77 +BuildRequires: perl(Mouse::Exporter) +BuildRequires: perl(Mouse::Util::TypeConstraints) BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) Requires: perl(Mouse) >= 0.41 @@ -36,6 +49,9 @@ This library was split off from Mouse as of Mouse 0.15. %prep %setup -q -n MouseX-Types-%{version} +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST find lib -type f -name '*.pm' -print0 | xargs -0 chmod 0644 chmod 0644 t/*.t @@ -60,6 +76,9 @@ make test %{_mandir}/man3/*.3* %changelog +* Tue May 23 2017 Jitka Plesnikova - 0.06-15 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering - 0.06-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild