Sisyphus repository
Last update: 24 september 2022 | SRPMs: 17655 | Visits: 25033888
en ru br
ALT Linux repos
S:0.04-alt4.2
5.0: 0.04-alt2
4.1: 0.04-alt1
4.0: 0.04-alt1

Group :: Development/Perl
RPM: perl-Text-CharWidth

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

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

%define module Text-CharWidth
%define m_distro Text-CharWidth
%define m_name Text::CharWidth
%define m_author_id unknown
%define _enable_test 1

Name: perl-Text-CharWidth
Version: 0.04
Release: alt2

Summary: Get number of occupied columns of a string on terminal

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

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://search.cpan.org//CPAN/authors/id/K/KU/KUBOTA/%m_distro-%version.tar.gz

# Automatically added by buildreq on Fri Feb 17 2006

BuildRequires: perl-devel

%description
This module supplies features similar as wcwidth(3) and wcswidth(3)
in C language.

Characters have its own width on terminal depending on locale.
For example, ASCII characters occupy one column per character,
east Asian fullwidth characters (like Hiragana or Han Ideograph)
occupy two columns per character, and combining characters (apperaring
in ISO-8859-11 Thai, Unicode, and so on) occupy zero columns per
character.  mbwidth() gives the width of the first character of
the given string and mbswidth() gives the width of the whole given
string.

The names of mbwidth and mbswidth came from "multibyte" versions
of wcwidth and wcswidth which are "wide character" versions.

*mblen(string)* returns number of bytes of the first character of the
string.  Please note that a character may consist of multiple
bytes in multibyte encodings such as UTF-8, EUC-JP, EUC-KR,
GB2312, or Big5.

*mbwidth(string)* returns the width of the first character of the
string.  *mbswidth(string)* returns the width of the whole string.

Parameters are to be given in locale encodings, not always in UTF-8.

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

%build
%perl_vendor_build

%install
%perl_vendor_install
rm -rf %buildroot%perl_vendor_man3dir/

%files
%doc README Changes
%perl_vendor_archlib/Text/*
%perl_vendor_autolib/Text/*

%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