Control optional test with a build condition

epel9
Petr Písař 7 years ago
parent 884ca44e4e
commit 37931a646e

@ -1,3 +1,10 @@
# Run optional test
%if !%{defined perl_bootstrap}
%bcond_without perl_B_Debug_enables_optional_test
%else
%bcond_with perl_B_Debug_enables_optional_test
%endif
Name: perl-B-Debug
Version: 1.26
Release: 1%{?dist}
@ -22,8 +29,8 @@ BuildRequires: perl(strict)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
%if %{with perl_B_Debug_enables_optional_test}
# Optional test:
%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::Pod) >= 1.00
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

Loading…
Cancel
Save