100 lines
3.5 KiB
RPMSpec
100 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package perl-PDF-Reuse-Barcode
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 PDF-Reuse-Barcode
|
|
Name: perl-PDF-Reuse-Barcode
|
|
Version: 0.70.0
|
|
Release: 0
|
|
# 0.07 -> normalize -> 0.70.0
|
|
%define cpan_version 0.07
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Create barcodes for PDF documents with PDF::Reuse
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CN/CNIGHS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Barcode::Code128)
|
|
BuildRequires: perl(GD::Barcode)
|
|
BuildRequires: perl(GD::Barcode::COOP2of5)
|
|
BuildRequires: perl(GD::Barcode::Code39)
|
|
BuildRequires: perl(GD::Barcode::EAN13)
|
|
BuildRequires: perl(GD::Barcode::EAN8)
|
|
BuildRequires: perl(GD::Barcode::IATA2of5)
|
|
BuildRequires: perl(GD::Barcode::ITF)
|
|
BuildRequires: perl(GD::Barcode::Industrial2of5)
|
|
BuildRequires: perl(GD::Barcode::Matrix2of5)
|
|
BuildRequires: perl(GD::Barcode::NW7)
|
|
BuildRequires: perl(GD::Barcode::UPCA)
|
|
BuildRequires: perl(GD::Barcode::UPCE)
|
|
BuildRequires: perl(PDF::Reuse)
|
|
Requires: perl(Barcode::Code128)
|
|
Requires: perl(GD::Barcode)
|
|
Requires: perl(GD::Barcode::COOP2of5)
|
|
Requires: perl(GD::Barcode::Code39)
|
|
Requires: perl(GD::Barcode::EAN13)
|
|
Requires: perl(GD::Barcode::EAN8)
|
|
Requires: perl(GD::Barcode::IATA2of5)
|
|
Requires: perl(GD::Barcode::ITF)
|
|
Requires: perl(GD::Barcode::Industrial2of5)
|
|
Requires: perl(GD::Barcode::Matrix2of5)
|
|
Requires: perl(GD::Barcode::NW7)
|
|
Requires: perl(GD::Barcode::UPCA)
|
|
Requires: perl(GD::Barcode::UPCE)
|
|
Requires: perl(PDF::Reuse)
|
|
Provides: perl(PDF::Reuse::Barcode) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This is a sub-module to PDF::Reuse. It creates barcode "images" to be used
|
|
in PDF documents. It uses GD::Barcode and its sub-modules:
|
|
GD::Barcode::Code39, COOP2of5, EAN13 and so on, to calculate the barcode
|
|
pattern. For Code128 it uses Barcode::Code128.
|
|
|
|
Normally the barcodes are displayed on a white background and with the
|
|
characters under the bars. You can rotate the "image", make it smaller or
|
|
bigger, prolong the bars and change the background. (But then, don't forget
|
|
to test that your barcode scanner still understands it.)
|
|
|
|
If you don't change the size of the "image", the bars are approximately 24
|
|
pixels high (the guard bars a few pixels longer) and the box/background is
|
|
38 pixels high and something like 20 pixels wider than the barcodes. The
|
|
text under the bars are 10 pixels high.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%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
|