From 69c084ffccb881406f11580eb42d7daefcd86802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 13 Dec 2017 09:14:24 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-autodie.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-autodie.spec b/perl-autodie.spec index 99a342b..fe06b3e 100644 --- a/perl-autodie.spec +++ b/perl-autodie.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_autodie_enables_optional_test + Name: perl-autodie Version: 2.29 Release: 395%{?dist} @@ -48,7 +51,7 @@ BuildRequires: perl(Test::More) # Test::Pod 1.41 not used # Test::Pod::Coverage 1.08 not used # Optional tests: -%if !%{defined perl_bootstrap} +%if %{with perl_autodie_enables_optinonal_test} && !%{defined perl_bootstrap} BuildRequires: perl(BSD::Resource) BuildRequires: perl(Import::Into) >= 1.002004 %endif