]> git.pld-linux.org Git - packages/perl-Algorithm-NaiveBayes.git/blame - perl-Algorithm-NaiveBayes.spec
use generic url
[packages/perl-Algorithm-NaiveBayes.git] / perl-Algorithm-NaiveBayes.spec
CommitLineData
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 8Summary: Algorithm::NaiveBayes - Bayesian prediction of categories
ffb5be2e 9Summary(pl.UTF-8): Algorithm::NaiveBayes - bayesowskie przewidywanie kategorii
cae0cca8 10Name: perl-Algorithm-NaiveBayes
4544523a 11Version: 0.04
12Release: 1
271bdae3 13# same as perl
3af41bfd 14License: GPL v1+ or Artistic
cae0cca8 15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
4544523a 17# Source0-md5: bd461c9ea2f140a75d5364cc98c2ef09
c93e83af 18URL: http://search.cpan.org/dist/Algorithm-NaiveBayes/
271bdae3 19BuildRequires: perl-devel >= 1:5.8.0
d0733f58 20BuildRequires: rpm-perlprov >= 4.1-13
cae0cca8 21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25This module implements the classic "Naive Bayes" machine learning
26algorithm. It is a well-studied probabilistic algorithm often used in
27automatic text categorization. Compared to other algorithms (kNN, SVM,
28Decision Trees), it's pretty fast and reasonably competitive in the
29quality of its results.
30
b44e7a58
JR
31%description -l pl.UTF-8
32Ten moduł jest implementacją klasycznego "naiwnego bayesowskiego"
d0733f58 33algorytmu uczenia maszyny. Jest to dobrze przestudiowany algorytm
b44e7a58
JR
34probabilistyczny często używany przy automatycznej kategoryzacji
35tekstu. W porównaniu do innych algorytmów (kNN, SVM, drzewa decyzyjne)
36jest dość szybki i w miarę konkurencyjny jeśli chodzi o jakość
37wynikó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
50rm -rf $RPM_BUILD_ROOT
51
55667846 52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
cae0cca8 54
55%clean
56rm -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/*
This page took 0.080643 seconds and 4 git commands to generate.