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)