Disable extra tests on RHEL

This commit is contained in:
Petr Písař 2018-07-04 15:54:04 +02:00
parent 02a9b715e4
commit 691e79562c
1 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,13 @@
%bcond_without XSAccessor
%endif
# Run extra test
%if 0%{?rhel}
%bcond_with perl_PPI_enables_extra_test
%else
%bcond_without perl_PPI_enables_extra_test
%endif
Name: perl-PPI
Version: 1.236
Release: 5%{?dist}
@ -62,6 +69,7 @@ BuildRequires: perl(Test::Object) >= 0.07
BuildRequires: perl(Test::SubCalls) >= 1.07
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(utf8)
%if %{with perl_PPI_enables_extra_test}
# =============== Release Tests =====================
# Circular dependencies in release tests, so don't do them when bootstrapping:
# Perl::MinimumVersion → PPI
@ -75,6 +83,7 @@ BuildRequires: perl(Test::CPAN::Meta) >= 0.17
BuildRequires: perl(Test::MinimumVersion) >= 0.101080
BuildRequires: perl(Test::Pod) >= 1.44
%endif
%endif
# =============== Module Runtime ====================
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with XSAccessor}
@ -117,7 +126,7 @@ make install DESTDIR=%{buildroot}
%check
make test
%if 0%{!?perl_bootstrap:1}
%if %{with perl_PPI_enables_extra_test} && 0%{!?perl_bootstrap:1}
make test TEST_FILES="xt/*.t" RELEASE_TESTING=1
%endif