Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 10:43:03 +01:00
parent 439bd1ef66
commit b17c97af72

View File

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