Files
perl-Math-BigInt-Pari/perl-Math-BigInt-Pari.spec
2025-08-12 18:15:18 +02:00

77 lines
2.3 KiB
RPMSpec

#
# 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
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
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