Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-12 15:16:59 +01:00
parent 83721a7099
commit fb40ba9d6c

View File

@ -1,3 +1,6 @@
# Run optional test
%bcond_without perl_Tie_IxHash_enables_optional_test
Name: perl-Tie-IxHash
Version: 1.23
Release: 11%{?dist}
@ -12,7 +15,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
%if !%{defined perl_bootstrap}
%if %{with perl_Tie_IxHash_enables_optional_test} && !%{defined perl_bootstrap}
BuildRequires: perl(Test::Pod)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))