Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37794771
en ru br
Репозитории ALT
S:2.25-alt1
5.1: 2.05-alt2
4.1: 2.04-alt2
4.0: 2.04-alt2
www.altlinux.org/Changes

Группа :: Разработка/Perl
Пакет: perl-Math-GMP

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

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

%define module Math-GMP
%define m_distro Math-GMP
%define m_name Math::GMP
%define m_author_id unknown
%define _enable_test 1

Name: perl-Math-GMP
Version: 2.05
Release: alt2

Summary: High speed arbitrary size integer math

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

Packager: Mikhail Pokidko <pma at altlinux.ru>

Source: %m_distro-%version.tar.gz
Patch0: %name-2.04-x86_64.patch

# Automatically added by buildreq on Wed Jan 24 2007

BuildRequires: libgmp-devel perl-devel

#BuildArch: noarch


%description
Math::GMP was designed to be a drop-in replacement both for
Math::BigInt and for regular integer arithmetic.  Unlike BigInt,
though, Math::GMP uses the GNU gmp library for all of its
calculations, as opposed to straight Perl functions.  This can result
in speed improvements.

The downside is that this module requires a C compiler to install -- a
small tradeoff in most cases. Also, this module is not 100 percent compatible
to Math::BigInt.

A Math::GMP object can be used just as a normal numeric scalar would
be -- the module overloads most of the normal arithmetic operators to
provide as seamless an interface as possible. However, if you need a
perfect interface, you can do the following:

 use Math::GMP qw(:constant);

 $n = 2 ** (256 * 1024);
 print "n is $n\n";

This would fail without the ':constant' since Perl would use normal
doubles to compute the 250,000 bit number, and thereby overflow it
into meaninglessness (smaller exponents yield less accurate data due
to floating point rounding).

%prep
%setup -q -n %m_distro-%version
#ifarch x86_64 ppc64
#patch0 -p0
#endif

%build
%perl_vendor_build

%install
%perl_vendor_install
#rm -rf buildroot perl_vendor_archlib

%files
%doc Changes LICENSE README
%perl_vendor_archlib/Math*
%perl_vendor_autolib/Math/GMP/*

#perl_vendor_privlib/*

#exclude %perl_vendor_archlib
#perl_vendor_man3dir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin