From dc0c32c315e537f43a77eaaf1ea288a0f2e458ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 09:56:01 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Compress-Raw-Bzip2.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/perl-Compress-Raw-Bzip2.spec b/perl-Compress-Raw-Bzip2.spec index 2bc18cb..8813e79 100644 --- a/perl-Compress-Raw-Bzip2.spec +++ b/perl-Compress-Raw-Bzip2.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Compress_Raw_Bzip2_enables_optional_test + Name: perl-Compress-Raw-Bzip2 Summary: Low-level interface to bzip2 compression library Version: 2.074 @@ -31,15 +34,18 @@ BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(File::Path) +BuildRequires: perl(threads::shared) +%if %{with perl_Compress_Raw_Bzip2_enables_optional_test} +# Optional Tests BuildRequires: perl(File::Temp) BuildRequires: perl(overload) -BuildRequires: perl(Scalar::Util) # Dual-lived module needs rebuilding early in the boot process %if !%{defined perl_bootstrap} BuildRequires: perl(Test::NoWarnings) BuildRequires: perl(Test::Pod) >= 1.00 %endif -BuildRequires: perl(threads::shared) +BuildRequires: perl(Scalar::Util) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(XSLoader)