Control optional test with a build condition
This commit is contained in:
parent
9903c712c0
commit
c7adc74b4a
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_constant_enables_optional_test
|
||||
|
||||
%global cpan_version 1.27
|
||||
|
||||
Name: perl-constant
|
||||
@ -23,7 +26,7 @@ BuildRequires: perl(warnings::register)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(utf8)
|
||||
BuildRequires: perl(warnings)
|
||||
%if !%{defined perl_bootstrap}
|
||||
%if %{with perl_constant_enables_optional_test} && !%{defined perl_bootstrap}
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Test::Pod) >= 1.14
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
||||
|
||||
Loading…
Reference in New Issue
Block a user