3 %bcond_without tests # do not perform "make test"
5 %define pdir Statistics
7 Summary: Statistics::OLS - perform ordinary least squares and associated statistics
8 Summary(pl.UTF-8): Statistics::OLS - metoda najmniejszych kwadratów i inne związane z nią statystyki
9 Name: perl-Statistics-OLS
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 7bd135125aecdbf523c00714e381eeaa
17 URL: http://search.cpan.org/dist/Statistics-OLS/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 I wrote Statistics::OLS to perform Ordinary Least Squares (linear
25 curve fitting) on two dimensional data: y = a + bx. The other simple
26 statistical module I found on CPAN (Statistics::Descriptive) is
27 designed for univariate analysis. It accommodates OLS, but somewhat
28 inflexibly and without rich bivariate statistics. Nevertheless, it
29 might make sense to fold OLS into that module or a supermodule
32 %description -l pl.UTF-8
33 Moduł Statistics::OLS został napisany, aby przeprowadzać liniowe
34 dopasowanie zwykłą metodą najmniejszych kwadratów na dwuwymiarowych
35 danych (y = a + bx). Inny prosty moduł, Statistics::Descriptive, służy
36 do analizy jednej zmiennej. Używa on zwykłej metody najmniejszych
37 kwadratów, ale jest mało elastyczny i pozbawiony bogatej analizy dwóch
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/Statistics/OLS.pm