Control optionl test with a build condition
This commit is contained in:
parent
a0cfed82d4
commit
d0ce6ee4f4
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Filter_enables_optional_test
|
||||
|
||||
Name: perl-Filter
|
||||
Epoch: 2
|
||||
Version: 1.58
|
||||
@ -27,6 +30,7 @@ BuildRequires: perl(XSLoader)
|
||||
# Tests
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
%if %{with perl_Filter_enables_optional_test}
|
||||
# Optional tests
|
||||
BuildRequires: perl(POSIX)
|
||||
%if !%{defined perl_bootstrap}
|
||||
@ -40,6 +44,7 @@ BuildRequires: perl(Test::Pod) >= 1.00
|
||||
# Test::Pod::Coverage 1.04 not used
|
||||
# Text::CSV_XS not used
|
||||
%endif
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Carp)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user