diff --git a/perl-Specio.spec b/perl-Specio.spec index 30cea0c..ded6579 100644 --- a/perl-Specio.spec +++ b/perl-Specio.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Specio_enables_optional_test + Name: perl-Specio Version: 0.42 Release: 1%{?dist} @@ -44,6 +47,7 @@ BuildRequires: perl(lib) BuildRequires: perl(open) BuildRequires: perl(Test::Needs) BuildRequires: perl(utf8) +%if %{with perl_Specio_enables_optional_test} # Optional Tests BuildRequires: perl(CPAN::Meta) >= 2.120900 BuildRequires: perl(CPAN::Meta::Prereqs) @@ -55,6 +59,7 @@ BuildRequires: perl(Moose) >= 2.1207 BuildRequires: perl(Mouse) %endif BuildRequires: perl(namespace::autoclean) +%endif # Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Ref::Util) >= 0.112