Control optional test with a build condition
This commit is contained in:
parent
7d24099182
commit
dddc94bb7a
|
@ -1,3 +1,10 @@
|
||||||
|
# Run optional test
|
||||||
|
%if ! (0%{?rhel})
|
||||||
|
%bcond_without perl_Module_Install_enables_optional_test
|
||||||
|
%else
|
||||||
|
%bcond_with perl_Module_Install_enables_optional_test
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: perl-Module-Install
|
Name: perl-Module-Install
|
||||||
Version: 1.19
|
Version: 1.19
|
||||||
Release: 22%{?dist}
|
Release: 22%{?dist}
|
||||||
|
@ -57,7 +64,7 @@ BuildRequires: perl(ExtUtils::MM)
|
||||||
BuildRequires: perl(Symbol)
|
BuildRequires: perl(Symbol)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
# Optional tests only
|
# Optional tests only
|
||||||
%if 0%{!?perl_bootstrap:1}
|
%if %{with perl_Module_Install_enables_optional_test} && 0%{!?perl_bootstrap:1}
|
||||||
BuildRequires: perl(Module::Install::AuthorTests)
|
BuildRequires: perl(Module::Install::AuthorTests)
|
||||||
BuildRequires: perl(Module::Install::ExtraTests) >= 0.007
|
BuildRequires: perl(Module::Install::ExtraTests) >= 0.007
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in New Issue