Control optional test with a build condition
This commit is contained in:
parent
439bd1ef66
commit
b17c97af72
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Exporter_enables_optional_test
|
||||
|
||||
%global base_version 5.70
|
||||
Name: perl-Exporter
|
||||
Version: 5.72
|
||||
@ -20,7 +23,7 @@ BuildRequires: perl(warnings)
|
||||
# Tests:
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(vars)
|
||||
%if !%{defined perl_bootstrap}
|
||||
%if %{with perl_Exporter_enables_optional_test} && !%{defined perl_bootstrap}
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Test::Pod) >= 1.18
|
||||
%endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user