From da9b7e7b7f5b1ef07baf3ef3af3eaf0c4a20e91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 11:44:32 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-IPC-SysV.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-IPC-SysV.spec b/perl-IPC-SysV.spec index 2b9cbc6..44bf897 100644 --- a/perl-IPC-SysV.spec +++ b/perl-IPC-SysV.spec @@ -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