1 %include /usr/lib/rpm/macros.php
3 %define _pearname Math_Stats
4 Summary: Math_Stats - Classes to calculate statistical parameters
5 Summary(pl.UTF-8): Math_Stats - klasy do obliczania parametrów statystycznych
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: afb06c6975bd1a53c97a8db4fd5d3546
13 URL: http://pear.php.net/package/Math_Stats/
14 BuildRequires: php-pear-PEAR
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.300
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Classes to calculate statistical parameters of numerical arrays of
23 data. The data can be in a simple numerical array, or in a cummulative
24 numerical array. A cummulative array, has the value as the index and
25 the number of repeats as the value for the array item, e.g. $data =
26 array(3=>4, 2.3=>5, 1.25=>6, 0.5=>3). Nulls can be rejected, ignored
27 or handled as zero values.
29 In PEAR status of this package is: %{_status}.
31 %description -l pl.UTF-8
32 Ten pakiet zawiera klasy służące do obliczania parametrów
33 statystycznych z tablic danych. Dane mogą być w zwykłej tablicy
34 numerycznej lub w tablicy skumulowanej. Tablica skumulowana zawiera
35 indeksy i liczby wystąpień wartości dla elementu tablicy, np. $data =
36 array(3=>4, 2.3=>5, 1.25=>6, 0.5=>3). Puste elementy mogą być
37 odrzucone, ignorowane lub taktowane jako wartości zerowe.
39 Ta klasa ma w PEAR status: %{_status}.
45 mv docs/%{_pearname}/docs/examples .
47 mv .%{php_pear_dir}/contrib .
48 mv .%{php_pear_dir}/data/Math_Stats/contrib/ignatius_reilly/* contrib
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{php_pear_dir}
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %doc docs/%{_pearname}/docs/* contrib
65 %{php_pear_dir}/.registry/*.reg
66 %{php_pear_dir}/Math/Stats.php
68 %{_examplesdir}/%{name}-%{version}