3 %bcond_without tests # don't perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam NaiveBayes
8 Summary: Algorithm::NaiveBayes - Bayesian prediction of categories
9 Summary(pl.UTF-8): Algorithm::NaiveBayes - bayesowskie przewidywanie kategorii
10 Name: perl-Algorithm-NaiveBayes
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: bd461c9ea2f140a75d5364cc98c2ef09
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 This module implements the classic "Naive Bayes" machine learning
25 algorithm. It is a well-studied probabilistic algorithm often used in
26 automatic text categorization. Compared to other algorithms (kNN, SVM,
27 Decision Trees), it's pretty fast and reasonably competitive in the
28 quality of its results.
30 %description -l pl.UTF-8
31 Ten moduł jest implementacją klasycznego "naiwnego bayesowskiego"
32 algorytmu uczenia maszyny. Jest to dobrze przestudiowany algorytm
33 probabilistyczny często używany przy automatycznej kategoryzacji
34 tekstu. W porównaniu do innych algorytmów (kNN, SVM, drzewa decyzyjne)
35 jest dość szybki i w miarę konkurencyjny jeśli chodzi o jakość
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Algorithm/*.pm
61 %{perl_vendorlib}/Algorithm/NaiveBayes