From 5ac8e2b58d0cbd3a77b8924ee6efaaf55ec8a841 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Tue, 21 Feb 2023 16:29:30 +0100 Subject: [PATCH] Introduce build-condition for optional tests --- perl-Lexical-Var.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Lexical-Var.spec b/perl-Lexical-Var.spec index 9f5690c..0bbe181 100644 --- a/perl-Lexical-Var.spec +++ b/perl-Lexical-Var.spec @@ -1,3 +1,6 @@ +# Run optional tests +%bcond_without perl_Lexical_Var_enables_optional_test + Name: perl-Lexical-Var Version: 0.009 Release: 31%{?dist} @@ -23,9 +26,11 @@ BuildRequires: perl(Lexical::SealRequireHints) >= 0.006 BuildRequires: perl(XSLoader) # Tests BuildRequires: perl(Test::More) +%if %{with perl_Lexical_Var_enables_optional_test} # Optional Tests BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) +%endif # Dependencies Conflicts: perl(B::Hooks::OP::Check) < 0.19