public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Business-ISBN] epel9: Weaken a dependency on GD::Barcode::EAN13 for rendering ISBN into PNG barcodes
Date: Tue, 18 Aug 2026 10:51:02 GMT [thread overview]
Message-ID: <178705026253.1.15335590913296701959.rpms-perl-Business-ISBN-dc02a94f4c6f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Business-ISBN
Branch : epel9
Commit : dc02a94f4c6fae38e8d54281790a0fc574478be1
Author : Petr Písař <ppisar@redhat.com>
Date : 2021-01-11T18:13:10+01:00
Stats : +22/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Business-ISBN/c/dc02a94f4c6fae38e8d54281790a0fc574478be1?branch=epel9
Log:
Weaken a dependency on GD::Barcode::EAN13 for rendering ISBN into PNG barcodes
---
diff --git a/perl-Business-ISBN.rpmlintrc b/perl-Business-ISBN.rpmlintrc
new file mode 100644
index 0000000..5dc7d5a
--- /dev/null
+++ b/perl-Business-ISBN.rpmlintrc
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* (barcode|Barcode|png)");
diff --git a/perl-Business-ISBN.spec b/perl-Business-ISBN.spec
index 0e3de2c..db728bc 100644
--- a/perl-Business-ISBN.spec
+++ b/perl-Business-ISBN.spec
@@ -1,7 +1,14 @@
+# Enable rendering ISBN into PNG barcodes with GD library
+%if 0%{?rhel}
+%bcond_with perl_Business_ISBN_enables_PNG
+%else
+%bcond_without perl_Business_ISBN_enables_PNG
+%endif
+
Name: perl-Business-ISBN
%global cpan_version 3.005
Version: %(echo '%{cpan_version}' | tr '_' '.'})
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Perl module to work with International Standard Book Numbers
License: Artistic 2.0
@@ -27,20 +34,27 @@ BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Exporter)
BuildRequires: perl(subs)
BuildRequires: perl(vars)
-# Optinonal run-time
+%if %{with perl_Business_ISBN_enables_PNG}
+# Optional run-time:
BuildRequires: perl(GD::Barcode::EAN13)
+%endif
# Tests:
BuildRequires: perl(Test::More) >= 0.95
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires: perl(GD::Barcode::EAN13)
+%if %{with perl_Business_ISBN_enables_PNG}
+Recommends: perl(GD::Barcode::EAN13)
+%endif
%description
This modules handles International Standard Book Numbers, including
ISBN-10 and ISBN-13.
+For exporting ISBN into a bar code, with png_barcode(), you need to install
+GD::Barcode::EAN13 Perl module.
+
%prep
%setup -q -n Business-ISBN-%{cpan_version}
@@ -62,6 +76,9 @@ make test
%{_mandir}/man3/*.3*
%changelog
+* Mon Jan 11 2021 Petr Pisar <ppisar@redhat.com> - 3.005-5
+- Weaken a dependency on GD::Barcode::EAN13 for rendering ISBN into PNG bar codes
+
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.005-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
reply other threads:[~2026-08-18 10:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178705026253.1.15335590913296701959.rpms-perl-Business-ISBN-dc02a94f4c6f@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox