Disable extra tests on RHEL

epel9
Petr Písař 7 years ago
parent bcecb1fafc
commit a0eb33dccd

@ -1,3 +1,10 @@
# Run extra tests
%if 0%{?rhel}
%bcond_with perl_Config_Tiny_enables_extra_test
%else
%bcond_without perl_Config_Tiny_enables_extra_test
%endif
Name: perl-Config-Tiny
Version: 2.23
Release: 11%{?dist}
@ -23,6 +30,7 @@ BuildRequires: perl(File::Temp) >= 0.22
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(UNIVERSAL)
BuildRequires: perl(utf8)
%if %{with perl_Config_Tiny_enables_extra_test}
# Extra Tests
BuildRequires: perl(Test::CPAN::Meta) >= 0.17
# Test::MinimumVersion → Perl::MinimumVersion → Perl::Critic → Config::Tiny
@ -30,6 +38,7 @@ BuildRequires: perl(Test::CPAN::Meta) >= 0.17
BuildRequires: perl(Test::MinimumVersion) >= 0.101080
%endif
BuildRequires: perl(Test::Pod) >= 1.44
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -52,7 +61,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%check
make test
%if %{with perl_Config_Tiny_enables_extra_test}
make test TEST_FILES="xt/*.t" AUTOMATED_TESTING=1
%endif
%files
%license LICENSE

Loading…
Cancel
Save