118 lines
3.8 KiB
RPMSpec
118 lines
3.8 KiB
RPMSpec
#
|
|
# spec file for package perl-PDL
|
|
#
|
|
# Copyright (c) 2024 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.81.0
|
|
Release: 0
|
|
# 2.081 -> normalize -> 2.81.0
|
|
%define cpan_version 2.081
|
|
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}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
BuildRequires: perl(Carp) >= 1.2
|
|
BuildRequires: perl(Devel::CheckLib) >= 1.01
|
|
BuildRequires: perl(ExtUtils::Depends) >= 0.402
|
|
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(IPC::Cmd) >= 0.72
|
|
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(ExtUtils::F77) >= 1.26
|
|
Recommends: perl(Inline) >= 0.83
|
|
Recommends: perl(Inline::C) >= 0.620
|
|
Recommends: perl(OpenGL) >= 0.70
|
|
Recommends: perl(OpenGL::GLUT) >= 0.720
|
|
Recommends: perl(Term::ReadKey) >= 2.340
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: gcc-fortran
|
|
BuildRequires: gd-devel
|
|
BuildRequires: gsl-devel
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: perl(Astro::FITS::Header)
|
|
BuildRequires: perl(ExtUtils::F77) >= 1.26
|
|
BuildRequires: perl(Inline) >= 0.83
|
|
BuildRequires: perl(Inline::C) >= 0.62
|
|
BuildRequires: perl(OpenGL) >= 0.70
|
|
BuildRequires: perl(Pod::Select)
|
|
BuildRequires: pkgconfig(gl)
|
|
BuildRequires: pkgconfig(glut)
|
|
BuildRequires: pkgconfig(xi)
|
|
BuildRequires: pkgconfig(xmu)
|
|
Provides: PDL
|
|
Recommends: perl(ExtUtils::F77) >= 1.26
|
|
Recommends: perl(OpenGL) >= 0.70
|
|
Requires: perl(Astro::FITS::Header)
|
|
Requires: perl(Inline) >= 0.83
|
|
Requires: perl(Inline::C) >= 0.62
|
|
# MANUAL END
|
|
|
|
%description
|
|
The perlDL project aims to turn perl into an efficient numerical
|
|
language for scientific computing. The PDL module gives standard perl
|
|
the ability to compactly store and speedily manipulate the large
|
|
N-dimensional data sets.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_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
|
|
|
|
# MANUAL BEGIN
|
|
sed 's/\r//' -i Example/Simplex/tsimp2.pl
|
|
|
|
# MANUAL END
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Bugs.pod Changes DEPENDENCIES DEVELOPMENT Example INTERNATIONALIZATION README
|
|
%license COPYING
|
|
%exclude %{perl_vendorarch}/PDL/HtmlDocs/PDL/pod2htmd.tmp
|
|
|
|
%changelog
|