%global srcname simplebayes Name: python-%{srcname} Version: 1.5.8 Release: 5%{?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 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 %py3_build %install %py3_install %check nosetests-3 %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %changelog * Mon Oct 01 2018 Elliott Sales de Andrade - 1.5.8-5 - Drop Python 2 subpackage * Sat Jul 14 2018 Fedora Release Engineering - 1.5.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.5.8-3 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.5.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Dec 22 2017 Elliott Sales de Andrade - 1.5.8-1 - Initial package.