From a87e19f456642b1d93417d9df0efde1ded9af673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Tue, 12 Dec 2017 12:57:16 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Sub-Install.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-Sub-Install.spec b/perl-Sub-Install.spec index be0d2e7..a4a3157 100644 --- a/perl-Sub-Install.spec +++ b/perl-Sub-Install.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Sub_Install_enables_optional_test + Name: perl-Sub-Install Version: 0.928 Release: 13%{?dist} @@ -20,7 +23,8 @@ BuildRequires: perl(Carp) BuildRequires: perl(Scalar::Util) # ================= Test Suite ============================== BuildRequires: perl(Test::More) >= 0.88 -%if !%{defined perl_bootstrap} +%if %{with perl_Sub_Install_enables_optional_test} && !%{defined perl_bootstrap} +# ================= Optional Tests ========================== # Test::Output -> Sub::Exporter -> Sub::Install BuildRequires: perl(Test::Output) %endif