Conttrol optional test with a build condition
This commit is contained in:
parent
4c61b2bfe7
commit
10d38bca34
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_version_enables_optional_test
|
||||
|
||||
Name: perl-version
|
||||
Epoch: 6
|
||||
Version: 0.99.18
|
||||
@ -43,7 +46,7 @@ BuildRequires: perl(parent)
|
||||
BuildRequires: perl(Test::Harness)
|
||||
BuildRequires: perl(Test::More) >= 0.45
|
||||
# Optional tests
|
||||
%if ! %{defined perl_bootstrap}
|
||||
%if %{with perl_version_enables_optional_test} && ! %{defined perl_bootstrap}
|
||||
BuildRequires: perl(Test::Taint)
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user