2010-07-16 15:28:08 +00:00
|
|
|
#
|
2011-11-11 11:19:49 +00:00
|
|
|
# spec file for package perl-Math-BigInt-GMP
|
2010-07-16 15:28:08 +00:00
|
|
|
#
|
2025-05-24 16:12:23 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2010-07-16 15:28:08 +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.
|
|
|
|
|
2018-11-08 15:22:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-07-16 15:28:08 +00:00
|
|
|
#
|
|
|
|
|
2011-11-11 11:19:49 +00:00
|
|
|
|
2021-07-26 05:40:03 +00:00
|
|
|
%define cpan_name Math-BigInt-GMP
|
2010-07-16 15:28:08 +00:00
|
|
|
Name: perl-Math-BigInt-GMP
|
2025-05-24 16:12:23 +00:00
|
|
|
Version: 1.7003
|
2015-04-16 08:13:49 +00:00
|
|
|
Release: 0
|
2018-05-02 11:38:14 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-06-02 09:30:03 +00:00
|
|
|
Summary: Backend library for Math::BigInt etc. based on GMP
|
2021-07-26 05:40:03 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2018-05-02 11:38:14 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 08:13:49 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:18 +02:00
|
|
|
Source100: README.md
|
2011-05-18 08:37:57 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2022-01-17 13:46:33 +00:00
|
|
|
BuildRequires: perl(Carp) >= 1.22
|
2021-07-26 05:40:03 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.58
|
2025-05-24 16:12:23 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 2.005001
|
2022-01-17 13:46:33 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
Requires: perl(Carp) >= 1.22
|
2025-05-24 16:12:23 +00:00
|
|
|
Requires: perl(Math::BigInt) >= 2.005001
|
2015-12-10 20:17:44 +00:00
|
|
|
%{perl_requires}
|
|
|
|
# MANUAL BEGIN
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.22
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
2015-12-07 21:11:10 +00:00
|
|
|
# Version check does not work for perl packages before 5.22
|
2015-12-07 21:15:04 +00:00
|
|
|
%if 0%{?suse_version} <= 1320
|
2016-01-05 08:44:52 +00:00
|
|
|
BuildRequires: perl-Math-BigInt >= 1.999714
|
|
|
|
Requires: perl-Math-BigInt >= 1.999714
|
2015-12-07 21:11:10 +00:00
|
|
|
%endif
|
2015-04-16 08:13:49 +00:00
|
|
|
# MANUAL END
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
%description
|
2015-12-07 21:21:10 +00:00
|
|
|
Math::BigInt::GMP is a replacement library for Math::BigInt::Calc that
|
|
|
|
reimplements some of the Math::BigInt::Calc functions in XS. It can be used
|
|
|
|
via:
|
|
|
|
|
|
|
|
use Math::BigInt lib => 'GMP';
|
|
|
|
|
|
|
|
This package contains a replacement (drop-in) module for Math::BigInt's core,
|
|
|
|
Math::BigInt::Calc.pm.
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
%prep
|
2025-05-24 16:12:23 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
2023-04-20 12:41:12 +00:00
|
|
|
|
2023-10-05 10:58:38 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
%build
|
2018-11-08 15:22:21 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2021-07-26 05:40:03 +00:00
|
|
|
%make_build
|
2010-07-16 15:28:08 +00:00
|
|
|
|
|
|
|
%check
|
2019-10-18 11:42:31 +00:00
|
|
|
make test
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-07-16 15:28:08 +00:00
|
|
|
%perl_gen_filelist
|
2008-01-02 14:51:20 +00:00
|
|
|
|
2010-07-16 15:28:08 +00:00
|
|
|
%files -f %{name}.files
|
2021-07-26 05:40:03 +00:00
|
|
|
%doc BUGS CHANGES CREDITS README README.md TODO
|
2018-05-02 11:38:14 +00:00
|
|
|
%license LICENSE
|
2008-01-02 14:51:20 +00:00
|
|
|
|
|
|
|
%changelog
|