From 6fad50f8b3af8c569bb4b599366b0d98264997ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 14 Feb 2020 16:17:05 +0100 Subject: [PATCH] Conditionalize optional tests --- perl-Compress-Raw-Lzma.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Compress-Raw-Lzma.spec b/perl-Compress-Raw-Lzma.spec index 6a7f6c8..25d3af1 100644 --- a/perl-Compress-Raw-Lzma.spec +++ b/perl-Compress-Raw-Lzma.spec @@ -1,3 +1,6 @@ +# Perform optional tests +%bcond_without perl_Compress_Raw_Lzma_enables_optional_test + Name: perl-Compress-Raw-Lzma Version: 2.093 Release: 2%{?dist} @@ -35,12 +38,14 @@ BuildRequires: perl(XSLoader) BuildRequires: perl(File::Path) BuildRequires: perl(overload) BuildRequires: perl(threads::shared) +%if %{with perl_Compress_Raw_Lzma_enables_optional_test} # Optional Tests BuildRequires: perl(Test::CPAN::Meta) BuildRequires: perl(Test::CPAN::Meta::JSON) BuildRequires: perl(Test::NoWarnings) BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: xz +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(XSLoader)