From 0a792ed2b4576ceb463c37fed5b988470a4f5d04 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Thu, 18 May 2017 09:11:30 +0200 Subject: Fix building on Perl without '.' in @INC (CPAN RT#121754x)
--- perl-CGI-Application-PSGI.spec | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/perl-CGI-Application-PSGI.spec b/perl-CGI-Application-PSGI.spec index 154ffb7..090a04a 100644 --- a/perl-CGI-Application-PSGI.spec +++ b/perl-CGI-Application-PSGI.spec @@ -1,6 +1,6 @@ Name: perl-CGI-Application-PSGI Version: 1.00 -Release: 19%{?dist} +Release: 20%{?dist} Summary: PSGI Adapter for CGI::Application License: GPL+ or Artistic @@ -8,14 +8,30 @@ URL: http://search.cpan.org/dist/CGI-Application-PSGI/ Source0: http://www.cpan.org/authors/id/M/MA/MARKSTOS/CGI-Application-PSGI-%{version}.tar.gz BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl >= 1:5.8.1 BuildRequires: perl-generators +BuildRequires: perl(base) BuildRequires: perl(CGI::Application) BuildRequires: perl(CGI::PSGI) -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AuthorTests) +BuildRequires: perl(Module::Install::Include) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::Repository) +BuildRequires: perl(Module::Install::TestBase) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: perl(lib) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(Plack::Loader) +BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Requires) BuildRequires: perl(Test::TCP) +BuildRequires: perl(warnings) +BuildRequires: sed Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} @@ -26,15 +42,18 @@ PSGI application. %prep %setup -q -n CGI-Application-PSGI-%{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 +make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +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/* @@ -48,6 +67,9 @@ make test %{_mandir}/man3/* %changelog +* Thu May 18 2017 Jitka Plesnikova <jples...@redhat.com> - 1.00-20 +- Fix building on Perl without '.' in @INC + * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 1.00-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-CGI-Application-PSGI.git/commit/?h=master&id=0a792ed2b4576ceb463c37fed5b988470a4f5d04 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org