File perl-PDL.spec of Package perl-PDL

#
# spec file for package perl-PDL
#
# 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 PDL
Name:           perl-PDL
Version:        2.100
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Perl Data Language
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{version}.tar.gz
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(CPAN::Meta) >= 2.120900
BuildRequires:  perl(Devel::CheckLib) >= 1.01
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.12
BuildRequires:  perl(ExtUtils::ParseXS) >= 3.21
BuildRequires:  perl(File::Map) >= 0.57
BuildRequires:  perl(File::Which)
BuildRequires:  perl(Filter::Simple) >= 0.88
BuildRequires:  perl(List::Util) >= 1.33
BuildRequires:  perl(Pod::Select)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::Warn)
BuildRequires:  perl(Text::Balanced) >= 2.05
Requires:       perl(File::Map) >= 0.57
Requires:       perl(File::Which)
Requires:       perl(Filter::Simple) >= 0.88
Requires:       perl(List::Util) >= 1.33
Requires:       perl(Pod::Select)
Requires:       perl(Text::Balanced) >= 2.05
Recommends:     perl(Astro::FITS::Header) >= 2.1
Recommends:     perl(Inline) >= 0.83
Recommends:     perl(Inline::C) >= 0.62
Recommends:     perl(Term::ReadKey) >= 2.34
%{perl_requires}

%description
(For the exported PDL constructor, pdl(), see PDL::Core)

PDL is the Perl Data Language, a perl extension that is designed for
scientific and bulk numeric data processing and display. It extends perl's
syntax and includes fully vectorized, multidimensional array handling, plus
several paths for device-independent graphics output.

PDL is fast, comparable and often outperforming IDL and MATLAB in real
world applications. PDL allows large N-dimensional data sets such as large
images, spectra, etc to be stored efficiently and manipulated quickly.

%prep
%autosetup  -n %{cpan_name}-%{version}

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 examples README.md
%license COPYING

%changelog
openSUSE Build Service is sponsored by