From bac36bfb85e7c0ab928dbfaf033f4bf826ba3c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 13 Feb 2020 15:10:16 +0100 Subject: [PATCH] Conditionalize a test dependency on Net::IDN::Encode and Net::LibIDN Because this package run-requires URI::_idna, IO::Socket:SSL::PublicSuffix library won't use the two modules and thus testing a code path for them is questionable. The condition allows to prune a dependency chain somewhat. --- perl-IO-Socket-SSL.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl-IO-Socket-SSL.spec b/perl-IO-Socket-SSL.spec index 22bbf29..24cdfdb 100644 --- a/perl-IO-Socket-SSL.spec +++ b/perl-IO-Socket-SSL.spec @@ -1,3 +1,5 @@ +%bcond_without perl_IO_Socket_SSL_test_unused_idn + Name: perl-IO-Socket-SSL Version: 2.066 Release: 8%{?dist} @@ -45,8 +47,10 @@ BuildRequires: perl(IO::Select) BuildRequires: perl(IO::Socket::INET6) >= 2.62 # IPC::Run for Test-client-performs-Post-Handshake-Authentication.patch BuildRequires: perl(IPC::Run) +%if %{with perl_IO_Socket_SSL_test_unused_idn} BuildRequires: perl(Net::IDN::Encode) BuildRequires: perl(Net::LibIDN) +%endif BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(utf8) BuildRequires: procps