From ef9379a89f4c7bc83fda0bdb188d76f2eb96d9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 10:06:24 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Compress-Raw-Zlib.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/perl-Compress-Raw-Zlib.spec b/perl-Compress-Raw-Zlib.spec index 425094b..8255e07 100644 --- a/perl-Compress-Raw-Zlib.spec +++ b/perl-Compress-Raw-Zlib.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Compress_Raw_Zlib_enables_optional_test + Name: perl-Compress-Raw-Zlib Version: 2.076 Release: 1%{?dist} @@ -38,6 +41,9 @@ BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(File::Path) +BuildRequires: perl(threads::shared) +%if %{with perl_Compress_Raw_Zlib_enables_optional_test} +# Optional Tests BuildRequires: perl(File::Temp) BuildRequires: perl(overload) # Dual-lived module needs rebuilding early in the boot process @@ -45,7 +51,7 @@ BuildRequires: perl(overload) 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(XSLoader)