]> git.pld-linux.org Git - packages/perl-Math-CDF.git/blob - perl-Math-CDF.spec
- generic URL
[packages/perl-Math-CDF.git] / perl-Math-CDF.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Math
7 %define         pnam    CDF
8 Summary:        Math::CDF - probabilities and quantiles for several statistical functions
9 Summary(pl.UTF-8):      Math::CDF - prawdopodobieństwa i kwantyle dla niektórych funkcji statystycznych
10 Name:           perl-Math-CDF
11 Version:        0.1
12 Release:        2
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/Math/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  7866c7b6b9d27f0ce4b7637334478ab7
18 Patch0:         %{name}-system-dcdflib.patch
19 URL:            http://search.cpan.org/dist/Math-CDF/
20 BuildRequires:  dcdflib.c-devel
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module provides a Perl interface to the DCDFLIB. Functions are
27 available for 7 continuous distributions (Beta, Chi-square, F, Gamma,
28 Normal, Poisson and T-distribution) and for two discrete distributions
29 (Binomial and Negative Binomial). Optional non-centrality parameters
30 are available for the Chi-square, F and T-distributions. Cumulative
31 probabilities are available for all 9 distributions and quantile
32 functions are available for the 7 continuous distributions.
33
34 %description -l pl.UTF-8
35 Ten moduł udostępnia perlowy interfejs do biblioteki DCDFLIB. Dostępne
36 są funkcje dla 7 rozkładów ciągłych (Beta, Chi-kwadrat, F, Gamma,
37 normalnego, Poissona, t Studenta) oraz dwóch dyskretnych (dwumianowego
38 i odwrotnego dwumianowego). Dostępne są opcjonalne parametry
39 niecentralności dla rozkładów Chi-kwadrat, F i t Studenta. Funkcje
40 rozkładu prawdopodobieństwa są dostępne dla wszystkich 9 rozkładów, a
41 funkcje kwantyli dla 7 ciągłych rozkładów.
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %patch0 -p1
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make} \
51         CC="%{__cc}" \
52         OPTIMIZE="%{rpmcflags}"
53
54 %{?with_tests:%{__make} test}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc Changes README
68 %{perl_vendorarch}/Math/CDF.pm
69 %dir %{perl_vendorarch}/auto/Math/CDF
70 %{perl_vendorarch}/auto/Math/CDF/CDF.bs
71 %attr(755,root,root) %{perl_vendorarch}/auto/Math/CDF/CDF.so
72 %{perl_vendorarch}/auto/Math/CDF/autosplit.ix
73 %{_mandir}/man3/*
This page took 0.132734 seconds and 3 git commands to generate.