From 09da9f74df42cddbd1c79667f4e904b033601791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 11:01:29 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-IO-Compress.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/perl-IO-Compress.spec b/perl-IO-Compress.spec index e3b9e9e..d254092 100644 --- a/perl-IO-Compress.spec +++ b/perl-IO-Compress.spec @@ -1,4 +1,8 @@ +# Run time expensive tests %bcond_without long_tests +# Run optional test +%bcond_without perl_IO_Compress_enables_optional_test + %{?perl_default_filter} Name: perl-IO-Compress @@ -42,15 +46,18 @@ BuildRequires: perl(utf8) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(File::Path) -BuildRequires: perl(File::Temp) BuildRequires: perl(lib) +BuildRequires: perl(threads::shared) +%if %{with perl_IO_Compress_enables_optional_test} +# Optional Tests +BuildRequires: perl(File::Temp) BuildRequires: perl(overload) # Dual-lived module needs building early in the boot process %if !%{defined perl_bootstrap} BuildRequires: perl(Test::NoWarnings) BuildRequires: perl(Test::Pod) >= 1.00 %endif -BuildRequires: perl(threads::shared) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(File::Glob)