forked from pool/perl-Math-BigInt
Accepting request 328286 from devel:languages:perl
1 OBS-URL: https://build.opensuse.org/request/show/328286 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Math-BigInt?expand=0&rev=9
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d937c0d1afbb3ddd9b666177faf56471b6c2d1917863db5879d04a2d1a69bf7e
|
||||
size 215143
|
3
Math-BigInt-1.9997.tar.gz
Normal file
3
Math-BigInt-1.9997.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c71f0ce171999343c05fc033227547dd33fddc9df7365170e69a6d8e1a515c3
|
||||
size 216000
|
27
cpanspec.yml
Normal file
27
cpanspec.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
preamble: |-
|
||||
Recommends: perl(bignum) >= 0.22
|
||||
Recommends: perl(Math::BigInt::FastCalc) >= 0.25
|
||||
Recommends: perl(Math::BigInt::GMP) >= 1.35
|
||||
Recommends: perl(Math::BigInt::Pari) >= 1.15
|
||||
Recommends: perl(Math::BigRat) >= 0.2602
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 1 09:08:11 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.9997
|
||||
see /usr/share/doc/packages/perl-Math-BigInt/CHANGES
|
||||
|
||||
##############################################################################
|
||||
The changes are now grouped by distribution.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 29 10:18:57 UTC 2014 - stephan.barth@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Math-BigInt
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,24 +17,27 @@
|
||||
|
||||
|
||||
Name: perl-Math-BigInt
|
||||
Version: 1.9993
|
||||
Version: 1.9997
|
||||
Release: 0
|
||||
%define cpan_name Math-BigInt
|
||||
Summary: Arbitrary size integer/float math package
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Math-BigInt/
|
||||
Source: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: http://www.cpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
Recommends: perl(bignum) >= 0.22
|
||||
Recommends: perl(Math::BigInt::FastCalc) >= 0.25
|
||||
Recommends: perl(Math::BigInt::GMP) >= 1.35
|
||||
Recommends: perl(Math::BigInt::Pari) >= 1.15
|
||||
Recommends: perl(Math::BigRat) >= 0.2602
|
||||
%{perl_requires}
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
All operators (including basic math operations) are overloaded if you
|
||||
@@ -45,55 +48,6 @@ declare your big integers as
|
||||
Operations with overloaded operators preserve the arguments which is
|
||||
exactly what you expect.
|
||||
|
||||
* Input
|
||||
|
||||
Input values to these routines may be any string, that looks like a
|
||||
number and results in an integer, including hexadecimal and binary
|
||||
numbers.
|
||||
|
||||
Scalars holding numbers may also be passed, but note that non-integer
|
||||
numbers may already have lost precision due to the conversion to float.
|
||||
Quote your input if you want BigInt to see all the digits:
|
||||
|
||||
$x = Math::BigInt->new(12345678890123456789); # bad
|
||||
$x = Math::BigInt->new('12345678901234567890'); # good
|
||||
|
||||
You can include one underscore between any two digits.
|
||||
|
||||
This means integer values like 1.01E2 or even 1000E-2 are also accepted.
|
||||
Non-integer values result in NaN.
|
||||
|
||||
Hexadecimal (prefixed with "0x") and binary numbers (prefixed with "0b")
|
||||
are accepted, too. Please note that octal numbers are not recognized by
|
||||
new(), so the following will print "123":
|
||||
|
||||
perl -MMath::BigInt -le 'print Math::BigInt->new("0123")'
|
||||
|
||||
To convert an octal number, use from_oct();
|
||||
|
||||
perl -MMath::BigInt -le 'print Math::BigInt->from_oct("0123")'
|
||||
|
||||
Currently, Math::BigInt::new() defaults to 0, while Math::BigInt::new('')
|
||||
results in 'NaN'. This might change in the future, so use always the
|
||||
following explicit forms to get a zero or NaN:
|
||||
|
||||
$zero = Math::BigInt->bzero();
|
||||
$nan = Math::BigInt->bnan();
|
||||
|
||||
'bnorm()' on a BigInt object is now effectively a no-op, since the
|
||||
numbers are always stored in normalized form. If passed a string, creates
|
||||
a BigInt object from the input.
|
||||
|
||||
* Output
|
||||
|
||||
Output values are BigInt objects (normalized), except for the methods
|
||||
which return a string (see the SYNOPSIS manpage).
|
||||
|
||||
Some routines ('is_odd()', 'is_even()', 'is_zero()', 'is_one()',
|
||||
'is_nan()', etc.) return true or false, while others ('bcmp()',
|
||||
'bacmp()') return either undef (if NaN is involved), <0, 0 or >0 and are
|
||||
suited for sort.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
Reference in New Issue
Block a user