Files
perl-Math-BigInt-Pari/perl-Math-BigInt-Pari.spec

77 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Math-BigInt-Pari
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Math-BigInt-Pari
Name: perl-Math-BigInt-Pari
Version: 1.301.600
Release: 0
# 1.3016 -> normalize -> 1.301.600
%define cpan_version 1.3016
Accepting request 638234 from home:pmonrealgonzalez:branches:devel:languages:perl - updated to 1.3004 2018-04-17 1.3004 2018-04-17 * The tests now require Test::More version 0.88 or newer. * Sync test files with Math-BigInt. * Add test files t/release-test-version.t, t/release-portability.t, and t/release-cpan-changes.t. * Use a MANIFEST.SKIP file based on the default file in the ExtUtils-Manifest distribution. * Format CHANGES according to CPAN::Changes::Spec. * Convert test file t/02pod.t to t/release-pod.t and t/03podcov.t to t/release-pod-coverage.t. 1.3003 2017-01-11 * Fix syntax for required version of Math::BigInt::Lib. * Better checking of POD coverage. * Sync test files with Math-BigInt-1.999808. * _from_hex() now accepts input without a "0x" prefix. * _from_bin() is more now efficient as it utilises the fact that Math::Pari::_hex_cvt() assumes the input is binary if the strings is prefixed by "0b". * Implement _to_hex(), _to_oct(), and _to_bin() for conversion to hexadecimal, octal, and binary without prefix. * Fix _nok() to work around a bug in Math::Pari::binomial(). It doesn't correctly handle cases where both n and k are very large. * Correct a few cases where non-OO syntax was used, e.g., "$x = _one();" should be "$x = $class -> _one();". * _inc() and _dec() now uses post-increment and post-decrement, respectively, rather than adding or subtracting one. * In test file t/01load.t, display the PARI library version number. 1.3002 2016-12-03 * Use ExtUtils::MakeMaker rather than Module::Install in Makefile.PL OBS-URL: https://build.opensuse.org/request/show/638234 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Math-BigInt-Pari?expand=0&rev=18
2018-09-26 07:34:01 +00:00
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Math backend library based on Math::Pari
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:15:18 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.58
BuildRequires: perl(Math::BigInt) >= 2.005001
BuildRequires: perl(Math::Pari) >= 2.10.709
BuildRequires: perl(Test::More) >= 0.82
Requires: perl(Math::BigInt) >= 2.005001
Requires: perl(Math::Pari) >= 2.10.709
Provides: perl(Math::BigInt::Pari) = %{version}
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
# Version check does not work for perl packages before 5.22
%if 0%{?suse_version} <= 1320
BuildRequires: perl-Math-BigInt >= 1.999713
Requires: perl-Math-BigInt >= 1.999713
%endif
# MANUAL END
%description
Math::BigInt::Pari inherits from Math::BigInt::Lib.
Provides support for big integer in Math::BigInt et al. calculations via
means of Math::Pari, an XS layer on top of the very fast PARI library.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGES README README.md
%license LICENSE
%changelog