From a08facd80aa231ba2b0d983c587591457f77a47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 8 Dec 2017 11:48:01 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Unicode-LineBreak.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Unicode-LineBreak.spec b/perl-Unicode-LineBreak.spec index ab8d449..b76bb17 100644 --- a/perl-Unicode-LineBreak.spec +++ b/perl-Unicode-LineBreak.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Unicode_LineBreak_enables_optional_test + Name: perl-Unicode-LineBreak Version: 2017.004 Release: 5%{?dist} @@ -33,8 +36,10 @@ BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Tests BuildRequires: perl(Test::More) >= 0.45 +%if %{with perl_Unicode_LineBreak_enables_optional_test} # Optional tests BuildRequires: perl(Test::Pod) >= 1.00 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Encode) >= 1.98 Requires: perl(MIME::Charset) >= 1.006.2