From 047207b6700ee61c9709804dce863bad3a9780bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 14 Feb 2020 10:54:47 +0100 Subject: [PATCH] Conditionalize optional tests --- perl-NTLM.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-NTLM.spec b/perl-NTLM.spec index bc23f32..acc9a10 100644 --- a/perl-NTLM.spec +++ b/perl-NTLM.spec @@ -1,3 +1,6 @@ +# Perform optional tests +%bcond_without perl_NTLM_enables_optional_test + Name: perl-NTLM Version: 1.09 Release: 24%{?dist} @@ -20,8 +23,10 @@ BuildRequires: perl(vars) # Tests BuildRequires: perl(Test::More) BuildRequires: perl(warnings) +%if %{with perl_NTLM_enables_optional_test} # Optional tests BuildRequires: perl(Test::Pod) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description