Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 12:00:17 +01:00
parent c1b4099d51
commit 9c3baad173

View File

@ -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))