From d51157c29e34e8dc1f2bd869d599f898bac1cf1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Thu, 27 Apr 2017 16:13:44 +0200
Subject: Introduce build-condition for JSON::MaybeXS test

The tests fall back to JSON::PP if JSON::MaybeXS is not available.

Reason for thus condition is this building autotools: JSON::MaybeXS
requires Compress::LZF that requires liblzf that requires autotools.
And autotools require modules whose packages are built by
Module::Install that requires YAML::Tiny that goes back JSON::MaybeXS
tests.
---
 perl-YAML-Tiny.spec | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/perl-YAML-Tiny.spec b/perl-YAML-Tiny.spec
index b9c8647..8e77ea3 100644
--- a/perl-YAML-Tiny.spec
+++ b/perl-YAML-Tiny.spec
@@ -1,3 +1,6 @@
+# Test using JSON::MaybeXS instead of JSON::PP
+%{bcond_without perl_YAML_Tiny_enables_JSON_MaybeX_test}
+
 Name:           perl-YAML-Tiny
 Version:        1.70
 Release:        2%{?dist}
@@ -31,7 +34,9 @@ BuildRequires:  perl(File::Spec::Functions)
 BuildRequires:  perl(File::Temp) >= 0.19
 BuildRequires:  perl(Getopt::Long)
 BuildRequires:  perl(IO::Dir)
+%if %{with perl_YAML_Tiny_enables_JSON_MaybeX_test}
 BuildRequires:  perl(JSON::MaybeXS) >= 1.001000
+%endif
 BuildRequires:  perl(JSON::PP)
 BuildRequires:  perl(lib)
 BuildRequires:  perl(List::Util)
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-YAML-Tiny.git/commit/?h=f26&id=d51157c29e34e8dc1f2bd869d599f898bac1cf1c
_______________________________________________
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