From a43f0a61b8d98bf77763df7ea31c2265cd4147c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 13 Dec 2017 10:21:02 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Test-MockModule.spec | 5 +++++ 1 file changed, 5 insertions(+) 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