Do not run optional test on RHEL
This commit is contained in:
parent
f51bd3df1b
commit
cec45ec85a
@ -1,3 +1,10 @@
|
||||
# Run optional test
|
||||
%if ! (0%{?rhel})
|
||||
%bcond_without perl_IO_CaptureOutput_enables_optional_test
|
||||
%else
|
||||
%bcond_with perl_IO_CaptureOutput_enables_optional_test
|
||||
%endif
|
||||
|
||||
Name: perl-IO-CaptureOutput
|
||||
Version: 1.1104
|
||||
Release: 9%{?dist}
|
||||
@ -19,7 +26,9 @@ BuildRequires: perl(File::Temp) >= 0.16
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(Test::More) >= 0.62
|
||||
# Optional test:
|
||||
%if %{with perl_IO_CaptureOutput_enables_optional_test}
|
||||
BuildRequires: perl(Inline::C)
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
|
Loading…
Reference in New Issue
Block a user