From f92c375fc82deeca763b6084421ff3682586fe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]> Date: Wed, 24 Jun 2015 13:06:16 +0200 Subject: Disable dependency on POE::API::Peek
diff --git a/POE-Component-Server-HTTP-0.09-Make-POE-API-Peek-optional.patch b/POE-Component-Server-HTTP-0.09-Make-POE-API-Peek-optional.patch new file mode 100644 index 0000000..c027c0f --- /dev/null +++ b/POE-Component-Server-HTTP-0.09-Make-POE-API-Peek-optional.patch @@ -0,0 +1,59 @@ +From 89292902bf68094808fb68ff9da94186f60f0604 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]> +Date: Wed, 24 Jun 2015 12:54:05 +0200 +Subject: [PATCH] Make POE::API::Peek optional +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +POE::API::Peek does not work with perl-5.22. This patch makes the +dependency optional. + +CPAN RT#105463 + +Signed-off-by: Petr Písař <[email protected]> +--- + Makefile.PL | 1 - + t/30_error.t | 7 ++++++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 9ffe9be..7399cf0 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -19,7 +19,6 @@ WriteMakefile( + PREREQ_PM => { + POE => '0.3007', # KR_RUN is certainly newer than 0.27, and + # 0.3005 has a broken POE::Filter::HTTPD +- POE::API::Peek => 0, + File::Spec => 0, + HTTP::Date => 0, + HTTP::Status => 0, +diff --git a/t/30_error.t b/t/30_error.t +index 00bcebc..ab62389 100644 +--- a/t/30_error.t ++++ b/t/30_error.t +@@ -11,7 +11,11 @@ use HTTP::Request; + use POE::Kernel; + use POE::Component::Server::HTTP; + use IO::Socket::INET; +-use POE::API::Peek; ++ ++my $have_api_peek; ++BEGIN { ++ $have_api_peek = eval 'use POE::API::Peek; 1'; ++} + + sub DEBUG { 0 }; + my $PORT=2080; +@@ -200,6 +204,7 @@ sub shutdown + sub __peek + { + my($verbose)=@_; ++ return unless $have_api_peek; + my $api=POE::API::Peek->new(); + my @queue = $api->event_queue_dump(); + +-- +2.1.0 + diff --git a/perl-POE-Component-Server-HTTP.spec b/perl-POE-Component-Server-HTTP.spec index 0303e05..a334d04 100644 --- a/perl-POE-Component-Server-HTTP.spec +++ b/perl-POE-Component-Server-HTTP.spec @@ -6,6 +6,9 @@ License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/POE-Component-Server-HTTP/ Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/POE-Component-Server-HTTP-%{version}.tar.gz +# Disable dependency on POE::API::Peek which is broken with perl-5.22, +# bug #1231252, CPAN RT#105463 +Patch0: POE-Component-Server-HTTP-0.09-Make-POE-API-Peek-optional.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils @@ -41,7 +44,6 @@ BuildRequires: perl(File::Basename) BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(LWP::ConnCache) BuildRequires: perl(LWP::UserAgent) -BuildRequires: perl(POE::API::Peek) BuildRequires: perl(POE::Kernel) BuildRequires: perl(Test::More) BuildRequires: perl(warnings) @@ -67,6 +69,7 @@ apache and the mod_perl/Apache module. %prep %setup -q -n POE-Component-Server-HTTP-%{version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor @@ -88,6 +91,7 @@ make test %changelog * Wed Jun 24 2015 Petr Pisar <[email protected]> - 0.09-22 - Specify all dependencies +- Disable dependency on POE::API::Peek (bug #1231252) * Thu Jun 18 2015 Fedora Release Engineering <[email protected]> - 0.09-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.10.2 http://pkgs.fedoraproject.org/cgit/perl-POE-Component-Server-HTTP.git/commit/?h=master&id=f92c375fc82deeca763b6084421ff3682586fe5f -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/perl-devel
