69 lines
2.3 KiB
RPMSpec
69 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Statistics-Distributions
|
|
#
|
|
# 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 Statistics-Distributions
|
|
Name: perl-Statistics-Distributions
|
|
Version: 1.20.0
|
|
Release: 0
|
|
# 1.02 -> normalize -> 1.20.0
|
|
%define cpan_version 1.02
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Perl module for calculating critical values and upper probabilities of c[cut]
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIKEK/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(Statistics::Distributions) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This Perl module calculates percentage points (5 significant digits) of the
|
|
u (standard normal) distribution, the student's t distribution, the
|
|
chi-square distribution and the F distribution. It can also calculate the
|
|
upper probability (5 significant digits) of the u (standard normal), the
|
|
chi-square, the t and the F distribution. These critical values are needed
|
|
to perform statistical tests, like the u test, the t test, the F test and
|
|
the chi-squared test, and to calculate confidence intervals.
|
|
|
|
If you are interested in more precise algorithms you could look at:
|
|
StatLib: http://lib.stat.cmu.edu/apstat/ ; Applied Statistics Algorithms by
|
|
Griffiths, P. and Hill, I.D., Ellis Horwood: Chichester (1985)
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%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
|
|
|
|
%changelog
|