Control optional test with a build condition
This commit is contained in:
parent
d64c51c0ae
commit
37502ca160
@ -1,3 +1,6 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_namespace_clean_enables_optional_test
|
||||
|
||||
Name: perl-namespace-clean
|
||||
Summary: Keep your namespace tidy
|
||||
Version: 0.27
|
||||
@ -35,8 +38,10 @@ BuildRequires: perl(IPC::Open2)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(sort)
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_namespace_clean_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(Variable::Magic)
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(B::Hooks::EndOfScope) >= 0.12
|
||||
|
Loading…
Reference in New Issue
Block a user