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)