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

#
# spec file for package perl-Math-CDF
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           perl-Math-CDF
Version:        0.1
Release:        0
%define cpan_name Math-CDF
Summary:        Generate probabilities and quantiles from several 
License:        CHECK(GPL-1.0+ or Artistic-1.0)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Math-CDF/
Source0:        http://www.cpan.org/authors/id/C/CA/CALLAHAN/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
This module provides a perl interface to the DCDFLIB. See the section on
the DCDFLIB manpage for more information.

Functions are available for 7 continuous distributions (Beta, Chi-square,
F, Gamma, Normal, Poisson and T-distribution) and for two discrete
distributions (Binomial and Negative Binomial). Optional non-centrality
parameters are available for the Chi-square, F and T-distributions.
Cumulative probabilities are available for all 9 distributions and quantile
functions are available for the 7 continuous distributions.

All cumulative probability function names begin with the character "p".
They give the probability of being less than or equal to the given value [
'P(X <= x)' ]

All quantile function names begin with the character q. They give a value
of x such that 'P(X <= x)' = p where the value of p is provided to the
function.

Non-centrality parameters are always the last function argument when
available. You do not need to supply the non-centrality parameter in which
case it will be assumed to be 0.

All functions will return an undefined value if the function fails
(probably due to parameters being out of allowed range) but will not
otherwise generate an error message. The user should check for valid output
from the Math::CDF functions with the 'defined()' function as demonstrated
in the the SYNOPSIS manpage section.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README

%changelog
openSUSE Build Service is sponsored by