Do not run optional tests on RHEL

This commit is contained in:
Jitka Plesnikova 2018-04-11 16:30:19 +02:00
parent de0fc21908
commit b3b9a7e2f9

View File

@ -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