diff --git a/Algorithm-NaiveBayes-0.04.tar.gz b/Algorithm-NaiveBayes-0.04.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..49c744463b14b20d6a07c43afc4b77f3c757fa3d Binary files /dev/null and b/Algorithm-NaiveBayes-0.04.tar.gz differ diff --git a/perl-Algorithm-NaiveBayes.spec b/perl-Algorithm-NaiveBayes.spec new file mode 100644 index 0000000000000000000000000000000000000000..b82a50b0b8478a2a18a1ad4a899f192505f25ad8 --- /dev/null +++ b/perl-Algorithm-NaiveBayes.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Algorithm-NaiveBayes +Version: 0.04 +Release: 1 +Summary: Bayesian prediction of categories +License: GPL+ or Artistic +Group: Development/Libraries +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-generators +BuildRequires: perl(List::Util) +BuildRequires: perl(Module::Build) +Requires: perl(List::Util) +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. + +%package help +Summary : Bayesian prediction of categories +Provides: perl-Algorithm-NaiveBayes-doc + +%description help +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 +export PERL_MM_OPT="" +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Tue Jun 29 2021 Perl_Bot 0.04-1 +- Specfile autogenerated by Perl_Bot