Control optional test with a build condition
This commit is contained in:
parent
9cd5e249d4
commit
dc0c32c315
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Compress_Raw_Bzip2_enables_optional_test
|
||||
|
||||
Name: perl-Compress-Raw-Bzip2
|
||||
Summary: Low-level interface to bzip2 compression library
|
||||
Version: 2.074
|
||||
@ -31,15 +34,18 @@ BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(XSLoader)
|
||||
# Test Suite
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(threads::shared)
|
||||
%if %{with perl_Compress_Raw_Bzip2_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(overload)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
# Dual-lived module needs rebuilding early in the boot process
|
||||
%if !%{defined perl_bootstrap}
|
||||
BuildRequires: perl(Test::NoWarnings)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
%endif
|
||||
BuildRequires: perl(threads::shared)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(XSLoader)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user