Introduce build-condition for Business::ISBN

This commit is contained in:
Petr Písař 2017-04-10 14:02:04 +02:00
parent c5efb8d06a
commit 28d53fda02

View File

@ -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