From a16bffb2577b0be5ac5d642969cdc451974816f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 12:52:15 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Pod-Parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-Pod-Parser.spec b/perl-Pod-Parser.spec index d62f045..317730a 100644 --- a/perl-Pod-Parser.spec +++ b/perl-Pod-Parser.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Pod_Parser_enables_optional_test + Name: perl-Pod-Parser Version: 1.63 Release: 395%{?dist} @@ -30,7 +33,7 @@ BuildRequires: perl(Test::More) >= 0.6 # Circular dependency Pod::Checker <-> Pod::Parser BuildRequires: perl(Pod::Checker) >= 1.40 # VMS::Filespec not used -%if !%{defined perl_bootstrap} +%if %{with perl_Pod_Parser_enables_optional_test} && !%{defined perl_bootstrap} # Optional tests: BuildRequires: perl(IO::String) %endif