]>
Commit | Line | Data |
---|---|---|
cae0cca8 | 1 | # |
2 | # Conditional build: | |
516643e6 | 3 | %bcond_without tests # don't perform "make test" |
c93e83af | 4 | |
1a0601c9 | 5 | %define pdir Algorithm |
6 | %define pnam NaiveBayes | |
c93e83af | 7 | %include /usr/lib/rpm/macros.perl |
cae0cca8 | 8 | Summary: Algorithm::NaiveBayes - Bayesian prediction of categories |
ffb5be2e | 9 | Summary(pl.UTF-8): Algorithm::NaiveBayes - bayesowskie przewidywanie kategorii |
cae0cca8 | 10 | Name: perl-Algorithm-NaiveBayes |
4544523a | 11 | Version: 0.04 |
12 | Release: 1 | |
271bdae3 | 13 | # same as perl |
3af41bfd | 14 | License: GPL v1+ or Artistic |
cae0cca8 | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
4544523a | 17 | # Source0-md5: bd461c9ea2f140a75d5364cc98c2ef09 |
c93e83af | 18 | URL: http://search.cpan.org/dist/Algorithm-NaiveBayes/ |
271bdae3 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
d0733f58 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
cae0cca8 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This module implements the classic "Naive Bayes" machine learning | |
26 | algorithm. It is a well-studied probabilistic algorithm often used in | |
27 | automatic text categorization. Compared to other algorithms (kNN, SVM, | |
28 | Decision Trees), it's pretty fast and reasonably competitive in the | |
29 | quality of its results. | |
30 | ||
b44e7a58 JR |
31 | %description -l pl.UTF-8 |
32 | Ten moduł jest implementacją klasycznego "naiwnego bayesowskiego" | |
d0733f58 | 33 | algorytmu uczenia maszyny. Jest to dobrze przestudiowany algorytm |
b44e7a58 JR |
34 | probabilistyczny często używany przy automatycznej kategoryzacji |
35 | tekstu. W porównaniu do innych algorytmów (kNN, SVM, drzewa decyzyjne) | |
36 | jest dość szybki i w miarę konkurencyjny jeśli chodzi o jakość | |
37 | wyników. | |
cae0cca8 | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
d0733f58 JB |
43 | %{__perl} Makefile.PL \ |
44 | INSTALLDIRS=vendor | |
cae0cca8 | 45 | %{__make} |
46 | ||
516643e6 | 47 | %{?with_tests:%{__make} test} |
cae0cca8 | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
55667846 | 52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
cae0cca8 | 54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Change* | |
c318835f JB |
61 | %{perl_vendorlib}/Algorithm/*.pm |
62 | %{perl_vendorlib}/Algorithm/NaiveBayes | |
cae0cca8 | 63 | %{_mandir}/man3/* |