From 399b925d6b93ea53283cf0a6a5bb8f38eef9e526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 11:52:49 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Math-BigInt.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Math-BigInt.spec b/perl-Math-BigInt.spec index 9bb1118..2e5e795 100644 --- a/perl-Math-BigInt.spec +++ b/perl-Math-BigInt.spec @@ -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