diff --git a/perl-Test-MockModule.spec b/perl-Test-MockModule.spec index 54592e6..1e18508 100644 --- a/perl-Test-MockModule.spec +++ b/perl-Test-MockModule.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Test_MockModule_enables_optional_test + Name: perl-Test-MockModule Version: 0.13 Release: 2%{?dist} @@ -21,9 +24,11 @@ BuildRequires: perl(vars) # Tests: BuildRequires: perl(lib) BuildRequires: perl(Test::More) +%if %{with perl_Test_MockModule_enables_optional_test} # Optional tests: BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 1.00 +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description