diff --git a/perl-B-Keywords.spec b/perl-B-Keywords.spec index b0e040a..4bc3d0e 100644 --- a/perl-B-Keywords.spec +++ b/perl-B-Keywords.spec @@ -1,3 +1,10 @@ +# Run extra test +%if ! (0%{?rhel}) +%bcond_without perl_B_Keywords_enables_extra_test +%else +%bcond_with perl_B_Keywords_enables_extra_test +%endif + Name: perl-B-Keywords Version: 1.18 Release: 2%{?dist} @@ -27,7 +34,7 @@ BuildRequires: perl(Test::More) # Optional Tests BuildRequires: perl(Test::Pod) >= 1.0 # Maintainer Tests -%if 0%{!?perl_bootstrap:1} +%if 0%{!?perl_bootstrap:1} && %{with perl_B_Keywords_enables_extra_test} BuildRequires: perl(File::Copy) BuildRequires: perl(Perl::MinimumVersion) >= 1.20 BuildRequires: perl(Test::CPAN::Meta) >= 0.12 @@ -64,7 +71,11 @@ find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %check -make test %{!?perl_bootstrap:IS_MAINTAINER=1 AUTHOR_TESTING=1} +%if 0%{!?perl_bootstrap:1} && %{with perl_B_Keywords_enables_extra_test} +make test IS_MAINTAINER=1 AUTHOR_TESTING=1 +%else +make test +%endif %files %license LICENSE