From 169d44e3d8449698a0815a4d5414c649ce104685 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Dec 26 2017 20:40:53 +0000 Subject: Initial import (#1528598). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6aa7ac3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/simplebayes-1.5.8.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0340882..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-simplebayes - -The python-simplebayes package \ No newline at end of file diff --git a/python-simplebayes.spec b/python-simplebayes.spec new file mode 100644 index 0000000..5e6bdc8 --- /dev/null +++ b/python-simplebayes.spec @@ -0,0 +1,88 @@ +%global srcname simplebayes + +Name: python-%{srcname} +Version: 1.5.8 +Release: 1%{?dist} +Summary: A memory-based, optional-persistence naïve bayesian text classifier + +License: MIT +URL: https://github.com/hickeroar/simplebayes +# PyPI tarballs do not include tests. +# 1.5.8 is also incorrectly tagged as 1.5.7 +# https://github.com/hickeroar/simplebayes/issues/2 +Source0: https://github.com/hickeroar/simplebayes/archive/1.5.7/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +A memory-based, optional-persistence naïve bayesian text classifier. This work \ +is heavily inspired by the python "redisbayes" module and this was written to \ +alleviate the network/time requirements when using the bayesian classifier to \ +classify large sets of text, or when attempting to train with very large sets \ +of sample data. + +%description %{_description} + + +%package -n python2-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{srcname}} + +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-nose +BuildRequires: python2-mock + +%description -n python2-%{srcname} %{_description} + + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-nose +BuildRequires: python3-mock + +%description -n python3-%{srcname} %{_description} + + +%prep +%autosetup -n %{srcname}-1.5.7 + +# Remove bundled egg-info +rm -rf %{srcname}.egg-info + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%check +nosetests-2 +nosetests-3 + + +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/%{srcname} +%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info + + +%changelog +* Fri Dec 22 2017 Elliott Sales de Andrade - 1.5.8-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..cad938b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (simplebayes-1.5.8.tar.gz) = 417af72db13418e5a9df2fdb642fc63ed3eb4fbbf88cc7252a9e3603d31e35ccb68ae5838d8bb7d77554c1820a9db8aa944c639af4eb6418babb9d360ef3ddbc