Control optional test with a build condition
This commit is contained in:
parent
c1b4099d51
commit
9c3baad173
@ -1,3 +1,6 @@
|
|||||||
|
# Run optional test
|
||||||
|
%bcond_without perl_Module_CoreList_enables_optional_test
|
||||||
|
|
||||||
Name: perl-Module-CoreList
|
Name: perl-Module-CoreList
|
||||||
# Epoch to compete with perl.spec
|
# Epoch to compete with perl.spec
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
@ -25,7 +28,7 @@ BuildRequires: perl(warnings)
|
|||||||
# Tests:
|
# Tests:
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
# Optional tests:
|
# Optional tests:
|
||||||
%if !%{defined perl_bootstrap}
|
%if %{with perl_Module_CoreList_enables_optional_test} && !%{defined perl_bootstrap}
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
%endif
|
%endif
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Loading…
Reference in New Issue
Block a user