Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 13:00:48 +01:00
parent d185cad176
commit b8f1071dfb

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_Term_ANSIColor_enables_optional_test
Name: perl-Term-ANSIColor
Version: 4.06
Release: 395%{?dist}
@ -26,7 +29,7 @@ BuildRequires: perl(lib)
BuildRequires: perl(overload)
BuildRequires: perl(Test::More)
# Optional tests
%if !%{defined perl_bootstrap}
%if %{with perl_Term_ANSIColor_enables_optional_test} && !%{defined perl_bootstrap}
BuildRequires: perl(IPC::System::Simple)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))