Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 11:01:29 +01:00
parent 6de887d2ad
commit 09da9f74df

View File

@ -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)