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