From 2cc06cd1a6f28af825d06c03dbfee80394351593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 8 Dec 2017 16:16:27 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Date-ISO8601.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Date-ISO8601.spec b/perl-Date-ISO8601.spec index 4f8fcc4..643f391 100644 --- a/perl-Date-ISO8601.spec +++ b/perl-Date-ISO8601.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Date_ISO8601_enables_optional_test + Name: perl-Date-ISO8601 Version: 0.005 Release: 1%{?dist} @@ -21,9 +24,11 @@ BuildRequires: perl(strict) BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(Test::More) +%if %{with perl_Date_ISO8601_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)) Requires: perl(Exporter)