2010-07-16 15:26:26 +00:00
|
|
|
#
|
2013-12-17 06:06:36 +00:00
|
|
|
# spec file for package perl-Math-BigInt-FastCalc
|
2010-07-16 15:26:26 +00:00
|
|
|
#
|
2025-05-24 18:40:59 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2010-07-16 15:26:26 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-09-05 18:28:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-07-16 15:26:26 +00:00
|
|
|
#
|
|
|
|
|
2013-12-17 06:06:36 +00:00
|
|
|
|
2021-07-26 05:40:48 +00:00
|
|
|
%define cpan_name Math-BigInt-FastCalc
|
2010-07-16 15:26:26 +00:00
|
|
|
Name: perl-Math-BigInt-FastCalc
|
2025-05-24 18:40:59 +00:00
|
|
|
Version: 0.5020
|
2013-12-17 06:06:36 +00:00
|
|
|
Release: 0
|
2018-09-26 07:34:18 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-06-02 09:29:33 +00:00
|
|
|
Summary: Math::BigInt::Calc with some XS for more speed
|
2021-07-26 05:40:48 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-05-24 18:40:59 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
2015-09-15 18:50:46 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:18 +02:00
|
|
|
Source100: README.md
|
2010-07-16 15:26:26 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2021-07-26 05:40:48 +00:00
|
|
|
BuildRequires: perl(Carp) >= 1.22
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.58
|
2025-05-24 18:40:59 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 2.005001
|
2019-09-05 18:28:05 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.82
|
2021-07-26 05:40:48 +00:00
|
|
|
Requires: perl(Carp) >= 1.22
|
2025-05-24 18:40:59 +00:00
|
|
|
Requires: perl(Math::BigInt) >= 2.005001
|
2011-04-29 05:25:09 +00:00
|
|
|
%{perl_requires}
|
2016-01-02 21:34:13 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
BuildRequires: perl-Math-BigInt >= 1.999713
|
|
|
|
Requires: perl-Math-BigInt >= 1.999713
|
|
|
|
%endif
|
2019-09-05 18:28:05 +00:00
|
|
|
BuildRequires: perl(parent)
|
2016-01-02 21:34:13 +00:00
|
|
|
# MANUAL END
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%description
|
2019-09-05 18:28:05 +00:00
|
|
|
Math::BigInt::FastCalc inherits from Math::BigInt::Calc.
|
|
|
|
|
|
|
|
Provides support for big integer calculations. Not intended to be used by
|
|
|
|
other modules. Other modules which sport the same functions can also be
|
|
|
|
used to support Math::BigInt, like Math::BigInt::GMP or Math::BigInt::Pari.
|
|
|
|
|
2010-07-16 15:26:26 +00:00
|
|
|
In order to allow for multiple big integer libraries, Math::BigInt was
|
|
|
|
rewritten to use library modules for core math routines. Any module which
|
|
|
|
follows the same API as this can be used instead by using the following:
|
2008-01-02 15:08:16 +00:00
|
|
|
|
2021-07-26 05:40:48 +00:00
|
|
|
use Math::BigInt lib => 'libname';
|
2011-04-29 05:25:09 +00:00
|
|
|
|
|
|
|
'libname' is either the long name ('Math::BigInt::Pari'), or only the short
|
|
|
|
version like 'Pari'. To use this library:
|
|
|
|
|
2021-07-26 05:40:48 +00:00
|
|
|
use Math::BigInt lib => 'FastCalc';
|
|
|
|
|
|
|
|
The default behaviour is to chose the best internal representation of big
|
|
|
|
integers, but the base length used in the internal representation can be
|
|
|
|
specified explicitly. Note that this must be done before Math::BigInt is
|
|
|
|
loaded. For example,
|
|
|
|
|
|
|
|
use Math::BigInt::FastCalc base_len => 3;
|
|
|
|
use Math::BigInt lib => 'FastCalc';
|
2011-04-29 05:25:09 +00:00
|
|
|
|
2008-01-02 15:08:16 +00:00
|
|
|
%prep
|
2025-05-24 18:40:59 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%build
|
2021-07-26 05:40:48 +00:00
|
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%make_build
|
2010-07-16 15:26:26 +00:00
|
|
|
|
|
|
|
%check
|
2019-09-05 18:28:05 +00:00
|
|
|
make test
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-07-16 15:26:26 +00:00
|
|
|
%perl_gen_filelist
|
2008-01-02 15:08:16 +00:00
|
|
|
|
2010-07-16 15:26:26 +00:00
|
|
|
%files -f %{name}.files
|
2021-07-26 05:40:48 +00:00
|
|
|
%doc CHANGES CREDITS README README.md TODO
|
2019-09-05 18:28:05 +00:00
|
|
|
%license LICENSE
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%changelog
|