From e6ae51897ab12408471d9a6285d2cb6a472aff65 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Apr 28 2017 10:18:40 +0000 Subject: Introduce build-condition for optional tests --- diff --git a/perl-Try-Tiny.spec b/perl-Try-Tiny.spec index 4779be3..62062e4 100644 --- a/perl-Try-Tiny.spec +++ b/perl-Try-Tiny.spec @@ -1,3 +1,5 @@ +%{bcond_without perl_Try_Tiny_enables_optional_test} + Name: perl-Try-Tiny Summary: Minimal try/catch with proper localization of $@ Version: 0.28 @@ -23,11 +25,13 @@ BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(File::Spec) BuildRequires: perl(Test::More) +%if %{with perl_Try_Tiny_enables_optional_test} # Optional Tests BuildRequires: perl(Capture::Tiny) >= 0.12 BuildRequires: perl(CPAN::Meta) >= 2.120900 BuildRequires: perl(CPAN::Meta::Check) >= 0.011 BuildRequires: perl(CPAN::Meta::Requirements) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Sub::Util)