Control optional test with a build condition
This commit is contained in:
parent
cdb22c6b54
commit
2f8c1ad3ee
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Module_Pluggable_enables_optional_test
|
||||
|
||||
Name: perl-Module-Pluggable
|
||||
Epoch: 2
|
||||
Version: 5.2
|
||||
@ -34,12 +37,14 @@ BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More) >= 0.62
|
||||
# IncTest is a locally overloaded module in t/lib/Text/Abbrev.pm
|
||||
%if %{with perl_Module_Pluggable_enables_optional_test}
|
||||
# Optional tests:
|
||||
BuildRequires: perl(App::FatPacker) >= 0.10.0
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(File::Copy)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Temp)
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(File::Spec::Functions) >= 3.00
|
||||
Requires: perl(deprecate)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user