From f532f9742b326b0ae4452d9ce7fe7ffbe54903b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 8 Dec 2017 16:04:21 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-DateTime-TimeZone-SystemV.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-DateTime-TimeZone-SystemV.spec b/perl-DateTime-TimeZone-SystemV.spec index c974659..b413c9b 100644 --- a/perl-DateTime-TimeZone-SystemV.spec +++ b/perl-DateTime-TimeZone-SystemV.spec @@ -1,3 +1,6 @@ +# Run optionl test +%bcond_without perl_DateTime_TimeZone_SystemV_enables_optional_test + Name: perl-DateTime-TimeZone-SystemV Version: 0.010 Release: 2%{?dist} @@ -19,9 +22,11 @@ BuildRequires: perl(strict) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(Test::More) +%if %{with perl_DateTime_TimeZone_SystemV_enables_optional_test} # Optional Tests BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) +%endif # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))