Disable extra tests on RHEL

This commit is contained in:
Petr Písař 2018-07-04 15:47:27 +02:00
parent 3d70e74f93
commit 5270393ff3

View File

@ -7,6 +7,13 @@
%global have_mojo 0
%endif
# Run extra test
%if 0%{?rhel}
%bcond_with perl_MIME_Types_enables_extra_test
%else
%bcond_without perl_MIME_Types_enables_extra_test
%endif
Name: perl-MIME-Types
Version: 2.17
Release: 3%{?dist}
@ -39,9 +46,11 @@ BuildRequires: perl(vars)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
%if %{with perl_MIME_Types_enables_extra_test}
# Extra Tests
BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl(Test::Pod) >= 1.00
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -84,7 +93,9 @@ find %{buildroot} -type f -name .packlist -delete
%check
make test
%if %{with perl_MIME_Types_enables_extra_test}
make test TEST_FILES="xt/*.t"
%endif
%files
%doc ChangeLog README README.md