[perl-Algorithm-NaiveBayes: 2/7] Initial package for Fedora

Mathieu Bridon bochecha at fedoraproject.org
Wed Oct 3 04:17:09 UTC 2012


commit d850307ee51dd5df325c2537d92f8f83487162af
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date:   Mon Aug 20 15:32:45 2012 +0800

    Initial package for Fedora
    
    This package was submitted on Mon Aug 20 2012:
        https://bugzilla.redhat.com/show_bug.cgi?id=849545#c0

 perl-Algorithm-NaiveBayes.spec |   53 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/perl-Algorithm-NaiveBayes.spec b/perl-Algorithm-NaiveBayes.spec
new file mode 100644
index 0000000..1faff18
--- /dev/null
+++ b/perl-Algorithm-NaiveBayes.spec
@@ -0,0 +1,53 @@
+Name:           perl-Algorithm-NaiveBayes
+Version:        0.04
+Release:        1%{?dist}
+Summary:        Bayesian prediction of categories
+
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/Algorithm-NaiveBayes/
+
+Source0:        http://www.cpan.org/authors/id/K/KW/KWILLIAMS/Algorithm-NaiveBayes-%{version}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  perl(Module::Build)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%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.
+
+
+%prep
+%setup -q -n Algorithm-NaiveBayes-%{version}
+
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+./Build test
+
+
+%files
+%doc Changes
+%{_mandir}/man3/Algorithm::NaiveBayes.3pm*
+%{perl_vendorlib}/Algorithm/NaiveBayes*
+
+
+%changelog
+* Mon Aug 20 2012 Mathieu Bridon <bochecha at fedoraproject.org> 0.04-1
+- Initial package, with help from cpanspec.



More information about the perl-devel mailing list