Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 11:44:32 +01:00
parent 1d98560704
commit da9b7e7b7f

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_IPC_SysV_enables_optional_test
Name: perl-IPC-SysV
Version: 2.07
Release: 396%{?dist}
@ -23,8 +26,8 @@ BuildRequires: perl(Exporter)
BuildRequires: perl(vars)
# Tests:
BuildRequires: perl(Test::More) >= 0.45
%if %{with perl_IPC_SysV_enables_optional_test} && !%{defined perl_bootstrap}
# Optional tests:
%if !%{defined perl_bootstrap}
BuildRequires: perl(Pod::Coverage) >= 0.10
BuildRequires: perl(Test::Pod) >= 0.95
BuildRequires: perl(Test::Pod::Coverage) >= 1.08