From 28d53fda027d3a984ffa201d4494389c6b7796b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 10 Apr 2017 14:02:04 +0200 Subject: [PATCH] Introduce build-condition for Business::ISBN --- perl-URI.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-URI.spec b/perl-URI.spec index 17b66b0..cb1e6d4 100644 --- a/perl-URI.spec +++ b/perl-URI.spec @@ -1,3 +1,6 @@ +# Utilize Business::ISBN that needs gd library +%bcond_without perl_URI_enables_Business_ISBN + Name: perl-URI Version: 1.71 Release: 6%{?dist} @@ -46,12 +49,14 @@ Requires: perl(MIME::Base64) >= 2 Requires: perl(Net::Domain) # Optional Functionality +%if %{with perl_URI_enables_Business_ISBN} # Business::ISBN pulls in gd and X libraries for barcode support, hence this soft dependency (#1380152) # Business::ISBN → Test::Pod → Pod::Simple → HTML::Entities (HTML::Parser) → URI %if 0%{!?perl_bootstrap:1} BuildRequires: perl(Business::ISBN) %endif Suggests: perl(Business::ISBN) +%endif %description This module implements the URI class. Objects of this class represent