Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37560390
en ru br
ALT Linux repos
S:2.21-alt1
5.0: 2.01-alt2
4.1: 2.01-alt1

Group :: Development/Perl
RPM: perl-Barcode-Code128

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#
#   - Barcode::Code128 -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       Barcode-Code128-2.00.tar.gz
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Barcode-Code128
%define m_distro Barcode-Code128
%define m_name Barcode::Code128
%define m_author_id unknown
%define _enable_test 1

Name: perl-Barcode-Code128
Version: 2.01
Release: alt2

Summary: Generate CODE 128 bar codes

License: Artistic
Group: Development/Perl
Url: http://www.cpan.org

Packager: Vladimir A. Svyatoshenko <svyt at altlinux.ru>

BuildArch: noarch
Source: %m_distro-%version.tar.gz

BuildRequires: perl-devel

%description
Barcode::Code128 generates bar codes using the CODE 128 symbology.  It
can generate images in PNG or GIF format using the GD package, or it
can generate a text string representing the barcode that you can
render using some other technology if desired.

The intended use of this module is to create a web page with a bar
code on it, which can then be printed out and faxed or mailed to
someone who will scan the bar code.  The application which spurred its
creation was an expense report tool, where the employee submitting the
report would print out the web page and staple the receipts to it, and
the Accounts Payable clerk would scan the bar code to indicate that
the receipts were received.

The default settings for this module produce a large image that can
safely be FAXed several times and still scanned easily.  If this
requirement is not important you can generate smaller image using
optional parameters, described below.

If you wish to generate images with this module you must also have the
GD.pm module (written by Lincoln Stein, and available from CPAN)
installed.  Version 1.20 or higher of GD generates a PNG file, due to
issues with the GIF patent.  If you want to create a GIF, you must use
version 1.19 or earlier of GD.  However, most browsers have no trouble
with PNG files.

If the GD module is not present, you can still use the module, but you
will not be able to use its functions for generating images.  You can
use the barcode() method to get a string of "#" and " " (hash and
space) characters, and use your own image-generating routine with that
as input.

To use the the GD module, you will need to install it along with this
module.  You can obtain it from the CPAN (Comprehensive Perl Archive
Network) repository of your choice under the directory
"authors/id/LDS".  Visit http://www.cpan.org/ for more information
about CPAN.  The GD home page is:
http://stein.cshl.org/WWW/software/GD/GD.html

%prep
%setup -q -n %m_distro-%version
%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%perl_vendor_privlib/Barcode*
%perl_vendor_man3dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin