Control optional test with a build condition
This commit is contained in:
parent
d185cad176
commit
b8f1071dfb
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user