public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Business-ISBN] epel10: Weaken a dependency on GD::Barcode::EAN13 for rendering ISBN into PNG barcodes
@ 2026-08-18 10:41 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-18 10:41 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-Business-ISBN
Branch : epel10
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=epel10

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-18 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-18 10:41 [rpms/perl-Business-ISBN] epel10: Weaken a dependency on GD::Barcode::EAN13 for rendering ISBN into PNG barcodes 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox