[perl-DBI] Conditionalize usage of Coro, which is used in experimental module and MLDB and SLQ::Statement.
Marcela Mašláňová
mmaslano at fedoraproject.org
Wed Jun 27 12:25:07 UTC 2012
commit a1eb20e850fe628c47f29379961209c6c1d47517
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date: Wed Jun 27 14:24:57 2012 +0200
Conditionalize usage of Coro, which is used in experimental module
and MLDB and SLQ::Statement.
perl-DBI.spec | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/perl-DBI.spec b/perl-DBI.spec
index 2c6a562..4445e57 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -15,7 +15,7 @@ BuildRequires: perl(Carp)
BuildRequires: perl(Clone)
# according to docs is module using Coro just:
# A PROOF-OF-CONCEPT IMPLEMENTATION FOR EXPERIMENTATION.
-%if ! ( 0%{?rhel} <= 7)
+%if ! ( 0%{?rhel} )
BuildRequires: perl(Coro)
BuildRequires: perl(Coro::Handle)
BuildRequires: perl(Coro::Select)
@@ -34,14 +34,16 @@ BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Select)
BuildRequires: perl(Math::BigInt)
# MLDBM is optional
+%if ! ( 0%{?rhel} )
BuildRequires: perl(MLDBM)
+%endif
# RPC::PlClient is optional
BuildRequires: perl(RPC::PlClient) >= 0.2000
# RPC::PlServer is optional
BuildRequires: perl(RPC::PlServer)
BuildRequires: perl(Scalar::Util)
# SQL::Statement is optional, and it requires DBI
-%if 0%{!?perl_bootstrap:1}
+%if 0%{!?perl_bootstrap:1} && ! ( 0%{?rhel} )
BuildRequires: perl(SQL::Statement) >= 1.28
%endif
BuildRequires: perl(Storable)
@@ -62,7 +64,9 @@ Requires: perl(Math::BigInt)
# Filter unwanted dependencies
%{?perl_default_filter}
-%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(RPC::
+%if ! ( 0%{?rhel} )
+%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^perl\\(RPC::|^perl\\(Coro|^perl\\(MLDB\\)|^perl\\(SQL::Statement\\)
+%endif
%description
DBI is a database access Application Programming Interface (API) for
@@ -113,6 +117,7 @@ make test
%changelog
* Wed Jun 27 2012 Marcela Mašláňová <mmaslano at redhat.com> - 1.622-3
- Conditionalize usage of Coro, which is used in experimental module
+ and MLDB and SLQ::Statement.
* Sat Jun 16 2012 Petr Pisar <ppisar at redhat.com> - 1.622-2
- Perl 5.16 rebuild
More information about the scm-commits
mailing list