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