[perl-B-Lint] Require deprecated if needed
Petr Pisar
ppisar at fedoraproject.org
Fri Feb 15 08:31:35 UTC 2013
commit 82fd97ee1c5f0bdec72f442dcc1bf7855dcd7bcd
Author: Petr Písař <ppisar at redhat.com>
Date: Fri Feb 15 09:29:35 2013 +0100
Require deprecated if needed
perl-B-Lint.spec | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/perl-B-Lint.spec b/perl-B-Lint.spec
index 55abd92..219ab94 100644
--- a/perl-B-Lint.spec
+++ b/perl-B-Lint.spec
@@ -13,6 +13,9 @@ BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
+%if 0%(perl -e 'print $] > 5.017')
+BuildRequires: perl(deprecated)
+%endif
BuildRequires: perl(if)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Pluggable)
@@ -25,6 +28,9 @@ BuildRequires: perl(O)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(constant)
+%if 0%(perl -e 'print $] > 5.017')
+Requires: perl(deprecated)
+%endif
%description
The B::Lint module is equivalent to an extended version of the -w option of
More information about the scm-commits
mailing list