[perl-IO-Prompt] Conditionalize test dependencies
Petr Pisar
ppisar at fedoraproject.org
Wed Nov 7 10:29:19 UTC 2012
commit 2ec35902db965c1222cfdae8da87a78ff5dcf4f0
Author: Petr Písař <ppisar at redhat.com>
Date: Wed Nov 7 11:29:04 2012 +0100
Conditionalize test dependencies
perl-IO-Prompt.spec | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/perl-IO-Prompt.spec b/perl-IO-Prompt.spec
index 0c76ea2..1d81b49 100644
--- a/perl-IO-Prompt.spec
+++ b/perl-IO-Prompt.spec
@@ -13,6 +13,7 @@ Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/IO-Prompt-%{
URL: http://search.cpan.org/dist/IO-Prompt
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
+%if %{with check}
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(IO::Handle)
@@ -25,6 +26,7 @@ BuildRequires: perl(Test::More)
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
More information about the perl-devel
mailing list