3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Math::CDF - probabilities and quantiles for several statistical functions
9 Summary(pl): Math::CDF - prawdopodobieñstwa i kwantyle dla niektórych funkcji statystycznych
13 # non-commercial because of some parts of DCDFLIB
14 License: non-commercial
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 7866c7b6b9d27f0ce4b7637334478ab7
18 Patch0: %{name}-system-dcdflib.patch
19 BuildRequires: dcdflib.c-devel
20 BuildRequires: perl-devel >= 5.6
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.
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 \
49 %{__make} OPTIMIZE="%{rpmcflags}"
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorarch}/Math/CDF.pm
66 %dir %{perl_vendorarch}/auto/Math/CDF
67 %{perl_vendorarch}/auto/Math/CDF/CDF.bs
68 %attr(755,root,root) %{perl_vendorarch}/auto/Math/CDF/CDF.so
69 %{perl_vendorarch}/auto/Math/CDF/autosplit.ix