From e6ae51897ab12408471d9a6285d2cb6a472aff65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Fri, 28 Apr 2017 12:18:40 +0200
Subject: Introduce build-condition for optional tests

---
 perl-Try-Tiny.spec | 4 ++++
 1 file changed, 4 insertions(+)

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)
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Try-Tiny.git/commit/?h=f26&id=e6ae51897ab12408471d9a6285d2cb6a472aff65
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to