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
|
|
|
#
|
2019-09-05 18:28:05 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
2010-07-16 15:26:26 +00:00
|
|
|
Name: perl-Math-BigInt-FastCalc
|
2019-09-05 18:28:05 +00:00
|
|
|
Version: 0.5008
|
2013-12-17 06:06:36 +00:00
|
|
|
Release: 0
|
2019-09-05 18:28:05 +00:00
|
|
|
%define cpan_name Math-BigInt-FastCalc
|
2011-04-29 05:25:09 +00:00
|
|
|
Summary: Math::BigInt::Calc with some XS for more speed
|
2018-09-26 07:34:18 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-04-29 05:25:09 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2019-09-05 18:28:05 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
|
|
|
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
|
2019-09-05 18:28:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-16 15:26:26 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2018-09-26 07:34:18 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 1.999812
|
2019-09-05 18:28:05 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.82
|
2018-09-26 07:34:18 +00:00
|
|
|
Requires: perl(Math::BigInt) >= 1.999812
|
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
|
|
|
|
2011-04-29 05:25:09 +00:00
|
|
|
use Math::BigInt lib => 'libname';
|
|
|
|
|
|
|
|
'libname' is either the long name ('Math::BigInt::Pari'), or only the short
|
|
|
|
version like 'Pari'. To use this library:
|
|
|
|
|
|
|
|
use Math::BigInt lib => 'FastCalc';
|
|
|
|
|
2008-01-02 15:08:16 +00:00
|
|
|
%prep
|
2010-07-16 15:26:26 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%build
|
2018-09-26 07:34:18 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
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
|
2011-04-29 05:25:09 +00:00
|
|
|
%defattr(-,root,root,755)
|
2008-01-02 15:08:16 +00:00
|
|
|
%doc CHANGES CREDITS README TODO
|
2019-09-05 18:28:05 +00:00
|
|
|
%license LICENSE
|
2008-01-02 15:08:16 +00:00
|
|
|
|
|
|
|
%changelog
|