Control optional test with a build condition

This commit is contained in:
Petr Písař 2017-12-07 14:08:46 +01:00
parent d64c51c0ae
commit 37502ca160

View File

@ -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