Control optional test with a build condition
This commit is contained in:
parent
228e9c5cf8
commit
dbac248b85
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Test_Warnings_enables_optional_test
|
||||
|
||||
Name: perl-Test-Warnings
|
||||
Version: 0.026
|
||||
Release: 6%{?dist}
|
||||
@ -28,6 +31,7 @@ BuildRequires: perl(if)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More) >= 0.94
|
||||
BuildRequires: perl(Test::Tester) >= 0.108
|
||||
%if %{with perl_Test_Warnings_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
@ -36,6 +40,7 @@ BuildRequires: perl(CPAN::Meta::Check) >= 0.011
|
||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||
BuildRequires: perl(CPAN::Meta::Requirements)
|
||||
BuildRequires: perl(PadWalker)
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Carp)
|
||||
|
Loading…
Reference in New Issue
Block a user