commit 332e6afbf158250a86053a69ab5fa21ace9627f4 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Feb 8 08:58:19 2013 +0100 Require deprecated module if needed perl-Log-Message.spec | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) --- diff --git a/perl-Log-Message.spec b/perl-Log-Message.spec index dba6573..a073eda 100644 --- a/perl-Log-Message.spec +++ b/perl-Log-Message.spec @@ -13,6 +13,9 @@ BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) # Run-time: BuildRequires: perl(Carp) +%if 0%(perl -e 'print $] > 5.017') +BuildRequires: perl(deprecated) +%endif BuildRequires: perl(FileHandle) BuildRequires: perl(if) BuildRequires: perl(Locale::Maketext::Simple) @@ -25,6 +28,9 @@ BuildRequires: perl(File::Spec) BuildRequires: perl(lib) BuildRequires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +%if 0%(perl -e 'print $] > 5.017') +Requires: perl(deprecated) +%endif %description This package enables you to do generic message logging throughout programs and @@ -56,3 +62,4 @@ make test %changelog * Thu Jan 24 2013 Petr Pisar <ppisar@xxxxxxxxxx> 1:0.06-1 - Specfile autogenerated by cpanspec 1.78. +- Require deprecated module if needed -- 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