]> git.pld-linux.org Git - packages/perl-Math-CDF.git/blob - perl-Math-CDF.spec
- ported to new bconds
[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):    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/%{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)
23
24 %description
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.
32
33 %description -l pl
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.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %patch -p1
45
46 %build
47 %{__perl} Makefile.PL \
48         INSTALLDIRS=vendor
49 %{__make} OPTIMIZE="%{rpmcflags}"
50
51 %{?with_tests:%{__make} test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Changes README
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
70 %{_mandir}/man3/*
This page took 0.049383 seconds and 3 git commands to generate.