1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#
# Conditional build:
# _without_tests - do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir Math
%define pnam CDF
Summary: Math::CDF - probabilities and quantiles for several statistical functions
Summary(pl): Math::CDF - prawdopodobieństwa i kwantyle dla niektórych funkcji statystycznych
Name: perl-Math-CDF
Version: 0.1
Release: 1
# non-commercial because of some parts of DCDFLIB
License: non-commercial
Group: Development/Languages/Perl
Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
Patch0: %{name}-system-dcdflib.patch
BuildRequires: dcdflib.c-devel
BuildRequires: perl >= 5.6
BuildRequires: rpm-perlprov >= 3.0.3-16
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This module provides a Perl interface to the DCDFLIB. 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.
%description -l pl
Ten moduł udostępnia perlowy interfejs do biblioteki DCDFLIB. Dostępne
są funkcje dla 7 rozkładów ciągłych (Beta, Chi-kwadrat, F, Gamma,
normalnego, Poissona, t Studenta) oraz dwóch dyskretnych (dwumianowego
i odwrotnego dwumianowego). Dostępne są opcjonalne parametry
niecentralności dla rozkładów Chi-kwadrat, F i t Studenta. Funkcje
rozkładu prawdopodobieństwa są dostępne dla wszystkich 9 rozkładów, a
funkcje kwantyli dla 7 ciągłych rozkładów.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch -p1
%build
perl Makefile.PL
%{__make} OPTIMIZE="%{rpmcflags}"
%{!?_without_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_sitearch}/Math/CDF.pm
%dir %{perl_sitearch}/auto/Math/CDF
%{perl_sitearch}/auto/Math/CDF/CDF.bs
%attr(755,root,root) %{perl_sitearch}/auto/Math/CDF/CDF.so
%{perl_sitearch}/auto/Math/CDF/autosplit.ix
%{_mandir}/man3/*
|