From c89b6346fce383d05aba97584797cac28d118d47 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Fri, 7 Oct 2016 08:11:35 +0100
Subject: Soften Business::ISBN dependency from Requires: to Suggests:

This avoids pulling in gd and X libraries (#1380152)
---
 perl-URI.spec | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/perl-URI.spec b/perl-URI.spec
index 78ad0a7..487603c 100644
--- a/perl-URI.spec
+++ b/perl-URI.spec
@@ -1,6 +1,6 @@
 Name:           perl-URI
 Version:        1.71
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        A Perl module implementing URI parsing and manipulation
 Group:          Development/Libraries
 License:        GPL+ or Artistic
@@ -16,10 +16,6 @@ BuildRequires:  perl-generators
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
 BuildRequires:  perl(utf8)
 # Module Runtime
-# Business::ISBN → Test::Pod → Pod::Simple → HTML::Entities (HTML::Parser) → 
URI
-%if 0%{!?perl_bootstrap:1}
-BuildRequires:  perl(Business::ISBN)
-%endif
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Cwd)
@@ -43,13 +39,20 @@ BuildRequires:  perl(Test)
 BuildRequires:  perl(Test::More) >= 0.96
 # Runtime
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires:       perl(Business::ISBN)
 Requires:       perl(Cwd)
 Requires:       perl(Data::Dumper)
 Requires:       perl(Encode)
 Requires:       perl(MIME::Base64) >= 2
 Requires:       perl(Net::Domain)
 
+# Optional Functionality
+# 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)
+
 %description
 This module implements the URI class. Objects of this class represent
 "Uniform Resource Identifier references" as specified in RFC 2396 (and
@@ -88,6 +91,10 @@ make test
 %{_mandir}/man3/URI::ldap.3*
 
 %changelog
+* Fri Oct  7 2016 Paul Howarth <p...@city-fan.org> - 1.71-5
+- Soften Business::ISBN dependency from Requires: to Suggests: to avoid
+  pulling in gd and X libraries (#1380152)
+
 * Wed May 18 2016 Jitka Plesnikova <jples...@redhat.com> - 1.71-4
 - Perl 5.24 re-rebuild of bootstrapped packages
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-URI.git/commit/?h=master&id=c89b6346fce383d05aba97584797cac28d118d47
_______________________________________________
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