Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37766562
en ru br
ALT Linux repos
S:1.76-alt1
5.0: 1.52-alt1
4.1: 1.52-alt1
4.0: 1.52-alt1
3.0: 1.45-alt1.1

Group :: Development/Perl
RPM: perl-Number-Format

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define module Number-Format

Name: perl-%module
Version: 1.45
Release: alt1.1

Packager: Yuri N. Sedunov <aris at altlinux.ru>

Summary: Perl module converts numbers to strings with pretty formatting
Summary(ru_RU.KOI8-R): Модуль %module для языка Perl
Group: Development/Perl
License: Artistic
Source: http://www.cpan.org/modules/by-module/Number/%module-%version.tar.bz2

BuildArch: noarch

# Automatically added by buildreq on Mon Nov 11 2002

BuildRequires: perl-devel

%description
Number::Format is a library for formatting numbers.  Functions are
provided for converting numbers to strings in a variety of ways, and to
convert strings that contain numbers back into numeric form.  The output
formats may include thousands separators - characters inserted between
each group of three characters counting right to left from the decimal
point.  The characters used for the decimal point and the thousands
separator come from the locale information or can be specified by the
user.

Also of note is the format_picture command which converts a number into
a string using a "picture" string that you provide.  This is similar to
the PRINT USING statement that some versions of BASIC have.

In addition, functions exist to generate strings for numbers
containing currency (e.g. "USD 9.99", "DEM 20.00", etc.) or for
rounding large values of bytes to the nearest giga/mega/kilo
(e.g. "1.5M", "640K", etc.).

%description -l ru_RU.KOI8-R
Number::Format является библиотекой для форматирования чисел.
Она предоставляет функции для преобразования чисел в строки и обратно.
Выходные форматы могут включать разделители разрядов - символы, включаемые
между каждой группой из трех символов, считающейся справа налево от
знака десятичной дроби.  Вид разделителя зависит от используемой
локали, но может быть определен пользователем.

Кроме того, имеются функции представления чисел, содержащих символы
валют (напр.. "ДОЛЛ.США 9.99", "DEM 20.00", и т.п..) или чтобы округлять
большие величины байтов на ближайший гига/мега/кило (напр.. "1.5M",
"640K", и т.п..).

%prep
%setup -q -n %module-%version

%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%doc README CHANGES TODO
%perl_vendor_privlib/Number*
%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