Conditionalize optional tests

This commit is contained in:
Petr Písař 2021-01-19 19:07:00 +01:00
parent 850b0a22ad
commit 6e3869034f

View File

@ -1,3 +1,10 @@
# Perform optional tests
%if 0%{?rhel} >= 7
%bcond_with perl_HTML_Tree_enable_optional_test
%else
%bcond_without perl_HTML_Tree_enable_optional_test
%endif
Name: perl-HTML-Tree
Epoch: 1
Version: 5.07
@ -31,7 +38,7 @@ BuildRequires: perl(warnings)
%if !%{defined perl_bootstrap}
# HTML::FormatText (perl-HTML-Format) has BR: perl(HTML::TreeBuilder) from this package
BuildRequires: perl(HTML::FormatText)
%if ! (0%{?rhel} >= 7)
%if %{with perl_HTML_Tree_enable_optional_test}
# perl-Test-LeakTrace -> perl-Test-Valgrind -> perl-XML-Twig -> perl-HTML-Tree
BuildRequires: perl(Test::LeakTrace)
%endif