From dddc94bb7a83c517d3bd4d376f1461ddfb3c4559 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Mon, 18 Jul 2022 15:51:57 +0200 Subject: [PATCH] Control optional test with a build condition --- perl-Module-Install.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/perl-Module-Install.spec b/perl-Module-Install.spec index d024139..5944696 100644 --- a/perl-Module-Install.spec +++ b/perl-Module-Install.spec @@ -1,3 +1,10 @@ +# Run optional test +%if ! (0%{?rhel}) +%bcond_without perl_Module_Install_enables_optional_test +%else +%bcond_with perl_Module_Install_enables_optional_test +%endif + Name: perl-Module-Install Version: 1.19 Release: 22%{?dist} @@ -57,7 +64,7 @@ BuildRequires: perl(ExtUtils::MM) BuildRequires: perl(Symbol) BuildRequires: perl(Test::More) # Optional tests only -%if 0%{!?perl_bootstrap:1} +%if %{with perl_Module_Install_enables_optional_test} && 0%{!?perl_bootstrap:1} BuildRequires: perl(Module::Install::AuthorTests) BuildRequires: perl(Module::Install::ExtraTests) >= 0.007 %endif