commit d0d3143e17e4e9f2c9e2eff4a0594c08b7772ad8 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Mon Aug 27 16:39:21 2012 +0200 Disable Coro properly perl-DBI.spec | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) --- diff --git a/perl-DBI.spec b/perl-DBI.spec index e43c95a..3a74d60 100644 --- a/perl-DBI.spec +++ b/perl-DBI.spec @@ -1,6 +1,14 @@ +# According to documentation, module using Coro is just: +# A PROOF-OF-CONCEPT IMPLEMENTATION FOR EXPERIMENTATION. +%if 0%{?rhel} >= 7 +%bcond_with coro +%else +%bcond_without coro +%endif + Name: perl-DBI Version: 1.622 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A database access API for perl Group: Development/Libraries License: GPL+ or Artistic @@ -13,9 +21,7 @@ BuildRequires: perl(constant) BuildRequires: perl(Carp) # Clone is optional BuildRequires: perl(Clone) -# according to docs is module using Coro just: -# A PROOF-OF-CONCEPT IMPLEMENTATION FOR EXPERIMENTATION. -%if ! ( 0%{?rhel} ) +%if %{with coro} BuildRequires: perl(Coro) BuildRequires: perl(Coro::Handle) BuildRequires: perl(Coro::Select) @@ -64,9 +70,7 @@ Requires: perl(Math::BigInt) # Filter unwanted dependencies %{?perl_default_filter} -%if ! ( 0%{?rhel} ) -%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(RPC::|^perl\\(Coro|^perl\\(MLDB\\)|^perl\\(SQL::Statement\\) -%endif +%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(RPC::\\) %description DBI is a database access Application Programming Interface (API) for @@ -81,6 +85,10 @@ iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new && chmod 644 ex/* chmod 744 dbixs_rev.pl sed -i 's?#!perl?#!%{__perl}?' ex/corogofer.pl +%if %{without coro} +rm lib/DBD/Gofer/Transport/corostream.pm +sed -i -e '/^lib\/DBD\/Gofer\/Transport\/corostream.pm$/d' MANIFEST +%endif %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" @@ -115,6 +123,9 @@ make test %{_mandir}/man3/*.3* %changelog +* Mon Aug 27 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.622-6 +- Disable Coro properly + * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.622-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel