3 %bcond_without tests # do not perform "make test"
7 Summary: Math::CDF - probabilities and quantiles for several statistical functions
8 Summary(pl.UTF-8): Math::CDF - prawdopodobieństwa i kwantyle dla niektórych funkcji statystycznych
12 # non-commercial because of some parts of DCDFLIB
13 License: non-commercial
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 7866c7b6b9d27f0ce4b7637334478ab7
17 Patch0: %{name}-system-dcdflib.patch
18 URL: http://search.cpan.org/dist/Math-CDF/
19 BuildRequires: dcdflib.c-devel
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides a Perl interface to the DCDFLIB. Functions are
26 available for 7 continuous distributions (Beta, Chi-square, F, Gamma,
27 Normal, Poisson and T-distribution) and for two discrete distributions
28 (Binomial and Negative Binomial). Optional non-centrality parameters
29 are available for the Chi-square, F and T-distributions. Cumulative
30 probabilities are available for all 9 distributions and quantile
31 functions are available for the 7 continuous distributions.
33 %description -l pl.UTF-8
34 Ten moduł udostępnia perlowy interfejs do biblioteki DCDFLIB. Dostępne
35 są funkcje dla 7 rozkładów ciągłych (Beta, Chi-kwadrat, F, Gamma,
36 normalnego, Poissona, t Studenta) oraz dwóch dyskretnych (dwumianowego
37 i odwrotnego dwumianowego). Dostępne są opcjonalne parametry
38 niecentralności dla rozkładów Chi-kwadrat, F i t Studenta. Funkcje
39 rozkładu prawdopodobieństwa są dostępne dla wszystkich 9 rozkładów, a
40 funkcje kwantyli dla 7 ciągłych rozkładów.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 OPTIMIZE="%{rpmcflags}"
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorarch}/Math/CDF.pm
68 %dir %{perl_vendorarch}/auto/Math/CDF
69 %attr(755,root,root) %{perl_vendorarch}/auto/Math/CDF/CDF.so
70 %{perl_vendorarch}/auto/Math/CDF/autosplit.ix