From a0548fe4915e30ef93efdef4c8ee48111edbf3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 7 Dec 2017 15:49:45 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Unicode-UTF8.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Unicode-UTF8.spec b/perl-Unicode-UTF8.spec index c25b832..c37e2d0 100644 --- a/perl-Unicode-UTF8.spec +++ b/perl-Unicode-UTF8.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Unicode_UTF8_enables_optional_test + Summary: Encoding and decoding of UTF-8 encoding form Name: perl-Unicode-UTF8 Version: 0.62 @@ -42,11 +45,13 @@ BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Fatal) >= 0.006 BuildRequires: perl(Test::More) >= 0.47 +%if %{with perl_Unicode_UTF8_enables_optional_test} # Optional Tests BuildRequires: perl(Taint::Runtime) >= 0.03 BuildRequires: perl(Test::LeakTrace) >= 0.10 BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Variable::Magic) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Exporter)