Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 10:06:24 +01:00
parent 92d89f875f
commit ef9379a89f

View File

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