Introduce build-condition for optional tests
This commit is contained in:
parent
b6ec9e0c5a
commit
0d6ac4c837
|
@ -1,3 +1,6 @@
|
|||
# Run optional tests
|
||||
%bcond_without perl_Compress_Bzip2_enables_optional_test
|
||||
|
||||
Name: perl-Compress-Bzip2
|
||||
Version: 2.25
|
||||
Release: 2%{?dist}
|
||||
|
@ -41,7 +44,7 @@ BuildRequires: perl(Cwd)
|
|||
BuildRequires: perl(Test::More)
|
||||
# Test::Kwalitee not used
|
||||
# Optional tests:
|
||||
%if !%{defined perl_bootstrap}
|
||||
%if !%{defined perl_bootstrap} && %{with perl_Compress_Bzip2_enables_optional_test}
|
||||
BuildRequires: perl(Test::LeakTrace)
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
|
Loading…
Reference in New Issue