8
0
Files
perl-GD-Barcode/perl-GD-Barcode.spec

78 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-GD-Barcode
#
2025-08-26 13:56:08 +00:00
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name GD-Barcode
Name: perl-GD-Barcode
2025-08-26 13:56:08 +00:00
Version: 2.10.0
Release: 0
2025-08-26 13:56:08 +00:00
# 2.01 -> normalize -> 2.10.0
%define cpan_version 2.01
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Create barcode image with GD
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/%{cpan_name}-%{cpan_version}.tar.gz
2025-08-12 18:14:18 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test2::V0) >= 0.000060
BuildRequires: perl(parent)
Requires: perl(parent)
2025-08-26 13:56:08 +00:00
Provides: perl(GD::Barcode) = %{version}
Provides: perl(GD::Barcode::COOP2of5) = %{version}
Provides: perl(GD::Barcode::Code39) = %{version}
Provides: perl(GD::Barcode::EAN13) = %{version}
Provides: perl(GD::Barcode::EAN8) = %{version}
Provides: perl(GD::Barcode::IATA2of5) = %{version}
Provides: perl(GD::Barcode::ITF) = %{version}
Provides: perl(GD::Barcode::Industrial2of5) = %{version}
Provides: perl(GD::Barcode::Matrix2of5) = %{version}
Provides: perl(GD::Barcode::NW7) = %{version}
Provides: perl(GD::Barcode::QRcode) = %{version}
Provides: perl(GD::Barcode::UPCA) = %{version}
Provides: perl(GD::Barcode::UPCE) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
GD::Barcode is a subclass of GD and allows you to create barcode image with
GD. This module based on "Generate Barcode Ver 1.02 By Shisei Hanai
97/08/22".
From 1.14, you can use this module even if no GD (except plot method).
%prep
2025-08-26 13:56:08 +00:00
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog