- updated to 0.94 see /usr/share/doc/packages/perl-Math-Matrix/Changes 0.94 2021-01-13 * Fix broken test in t/mldiv.t The rounding performed for values that are very close to an integer was performed on the wrong matrix. 0.93 2021-01-12 * The test is_deeply() does string comparison, so avoid negative zeros in test data and output from tests. Also round test output where the output may be slightly off from an integer. * Require Math::Trig version 1.06 so Math::Trig::Inf() is available. * Update the SUPPORT section to reflect that CPAN RT will be closing down on 1st March 2021. * Add support for negative integer powers in mpow(). OBS-URL: https://build.opensuse.org/request/show/863102 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Math-Matrix?expand=0&rev=7
72 lines
2.1 KiB
RPMSpec
72 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Math-Matrix
|
|
#
|
|
# Copyright (c) 2021 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-Matrix
|
|
Name: perl-Math-Matrix
|
|
Version: 0.94
|
|
Release: 0
|
|
Summary: Multiply and invert matrices
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Math::Trig) >= 1.06
|
|
BuildRequires: perl(Test::More) >= 0.82
|
|
Requires: perl(Math::Trig) >= 1.06
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module implements various constructors and methods for creating and
|
|
manipulating matrices.
|
|
|
|
All methods return new objects, so, for example, '$X->add($Y)' does not
|
|
modify '$X'.
|
|
|
|
$X -> add($Y); # $X not modified; output is lost
|
|
$X = $X -> add($Y); # this works
|
|
|
|
Some operators are overloaded (see OVERLOADING) and allow the operand to be
|
|
modified directly.
|
|
|
|
$X = $X + $Y; # this works
|
|
$X += $Y; # so does this
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
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
|
|
|
|
%changelog
|