From b3b9a7e2f961da9d31b754d27518f963d5814dc4 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 11 Apr 2018 16:30:19 +0200 Subject: [PATCH] Do not run optional tests on RHEL --- perl-B-Keywords.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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