File perl-Math-Pari.spec of Package perl-Math-Pari

#
# spec file for package perl-Math-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-Pari
Name:           perl-Math-Pari
Version:        2.30.523
Release:        0
# 2.030523 -> normalize -> 2.30.523
%define cpan_version 2.030523
License:        SUSE-Public-Domain
Summary:        Perl interface to PARI
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/I/IL/ILYAZ/modules/%{cpan_name}-%{cpan_version}.tar.gz
Source1:        pari-2.11.4.tar.gz
Source2:        cpanspec.yml
BuildRequires:  perl
BuildRequires:  perl-macros
Provides:       perl(Math::Pari) = %{version}
Provides:       perl(Math::Pari::Arr)
Provides:       perl(Math::PariInit)
%undefine       __perllib_provides
%{perl_requires}

%description
This package is a Perl interface to famous library PARI for
numerical/scientific/number-theoretic calculations. It allows use of most
PARI functions as Perl functions, and (almost) seamless merging of PARI and
Perl data. In what follows we suppose prior knowledge of what PARI is (see
ftp://megrez.math.u-bordeaux.fr/pub/pari, or Math::libPARI).

%prep
%autosetup  -n %{cpan_name}-%{cpan_version} -p1

find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%doc Changes gdbinit-my README README-after2_3_5 README-func_codes_h TODO TODO-probably-obsolete

%changelog
openSUSE Build Service is sponsored by