Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 11:52:49 +01:00
parent e2582eb5c3
commit 399b925d6b

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_Math_BigInt_enables_optional_test
Name: perl-Math-BigInt
Epoch: 1
%global cpan_version 1.999811
@ -33,6 +36,7 @@ BuildRequires: perl(lib)
# Scalar::Util not used
# Socket not used
BuildRequires: perl(Test::More) >= 0.94
%if %{with perl_Math_BigInt_enables_optional_test}
# Optional tests:
# This core module must be buildable without non-core modules at bootstrap.
%if !%{defined perl_bootstrap}
@ -40,6 +44,7 @@ BuildRequires: perl(Test::Pod) >= 1.22
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(Pod::Coverage) >= 0.18
%endif
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Math::Complex) >= 1.39
Conflicts: perl < 4:5.22.0-347