From dbac248b85b4d463eff1eff9f770ee92e488d6d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 7 Dec 2017 12:53:49 +0100 Subject: [PATCH] Control optional test with a build condition --- perl-Test-Warnings.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-Test-Warnings.spec b/perl-Test-Warnings.spec index 97b134e..bbf0a2b 100644 --- a/perl-Test-Warnings.spec +++ b/perl-Test-Warnings.spec @@ -1,3 +1,6 @@ +# Run optional test +%bcond_without perl_Test_Warnings_enables_optional_test + Name: perl-Test-Warnings Version: 0.026 Release: 6%{?dist} @@ -28,6 +31,7 @@ BuildRequires: perl(if) BuildRequires: perl(lib) BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(Test::Tester) >= 0.108 +%if %{with perl_Test_Warnings_enables_optional_test} # Optional Tests BuildRequires: perl(CPAN::Meta) >= 2.120900 %if 0%{?fedora} || 0%{?rhel} > 7 @@ -36,6 +40,7 @@ BuildRequires: perl(CPAN::Meta::Check) >= 0.011 BuildRequires: perl(CPAN::Meta::Prereqs) BuildRequires: perl(CPAN::Meta::Requirements) BuildRequires: perl(PadWalker) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Carp)