From 920b48ed5995e6d0dd8259a800efb6b8762734d0 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Thu, 18 May 2017 13:21:58 +0200 Subject: Fix building on Perl without '.' in @INC (CPAN RT#121774)
--- perl-PPI-PowerToys.spec | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/perl-PPI-PowerToys.spec b/perl-PPI-PowerToys.spec index d0405b1..ca35858 100644 --- a/perl-PPI-PowerToys.spec +++ b/perl-PPI-PowerToys.spec @@ -1,23 +1,33 @@ Name: perl-PPI-PowerToys Version: 0.14 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Handy collection of small PPI-based utilities License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/PPI-PowerToys/ Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/PPI-PowerToys-%{version}.tar.gz BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Find::Rule) >= 0.30 BuildRequires: perl(File::Find::Rule::Perl) >= 0.03 BuildRequires: perl(File::Spec) >= 0.80 BuildRequires: perl(Getopt::Long) >= 2.36 +BuildRequires: perl(inc::Module::Install::DSL) >= 0.87 +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::Scripts) BuildRequires: perl(PPI::Document) >= 1.201 +BuildRequires: perl(strict) +BuildRequires: perl(vars) BuildRequires: perl(version) >= 0.74 +BuildRequires: perl(warnings) # Tests only: BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(IPC::Run3) >= 0.034 +BuildRequires: perl(PPI) BuildRequires: perl(Probe::Perl) >= 0.01 BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Test::Script) >= 1.03 @@ -47,14 +57,17 @@ files, modules and distributions. %prep %setup -q -n PPI-PowerToys-%{version} +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST %build %{__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 {} \; +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* @@ -62,12 +75,16 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; make test %files -%doc Changes LICENSE README +%license LICENSE +%doc Changes README %{_bindir}/* %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Thu May 18 2017 Jitka Plesnikova <jples...@redhat.com> - 0.14-17 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 0.14-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-PPI-PowerToys.git/commit/?h=master&id=920b48ed5995e6d0dd8259a800efb6b8762734d0 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org