Introduce build-condition for optional tests

This commit is contained in:
Petr Písař 2017-04-10 13:34:22 +02:00
parent b6ec9e0c5a
commit 0d6ac4c837
1 changed files with 4 additions and 1 deletions

View File

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