From 2f8c1ad3ee79c9afb9e408b27e6b19441f7b843b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 8 Dec 2017 13:51:55 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Module-Pluggable.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Module-Pluggable.spec b/perl-Module-Pluggable.spec index 3623944..9836ec2 100644 --- a/perl-Module-Pluggable.spec +++ b/perl-Module-Pluggable.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Module_Pluggable_enables_optional_test + Name: perl-Module-Pluggable Epoch: 2 Version: 5.2 @@ -34,12 +37,14 @@ BuildRequires: perl(FindBin) BuildRequires: perl(lib) BuildRequires: perl(Test::More) >= 0.62 # IncTest is a locally overloaded module in t/lib/Text/Abbrev.pm +%if %{with perl_Module_Pluggable_enables_optional_test} # Optional tests: BuildRequires: perl(App::FatPacker) >= 0.10.0 BuildRequires: perl(Cwd) BuildRequires: perl(File::Copy) BuildRequires: perl(File::Path) BuildRequires: perl(File::Temp) +%endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(File::Spec::Functions) >= 3.00 Requires: perl(deprecate)