diff --git a/python-simplebayes.changes b/python-simplebayes.changes index b9222b5..f7d2408 100644 --- a/python-simplebayes.changes +++ b/python-simplebayes.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 15 10:07:51 UTC 2017 - mvetter@suse.com + +- Use python singlespec + ------------------------------------------------------------------- Sun Nov 6 18:37:58 UTC 2016 - mailaender@opensuse.org diff --git a/python-simplebayes.spec b/python-simplebayes.spec index e769c4e..38ea0a7 100644 --- a/python-simplebayes.spec +++ b/python-simplebayes.spec @@ -1,7 +1,7 @@ # # spec file for package python-simplebayes # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,36 +13,47 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +# make it work not just on TW +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + Name: python-simplebayes Version: 1.5.8 Release: 0 -License: MIT Summary: A memory-based, optional-persistence naïve bayesian text classifier -Url: https://github.com/hickeroar/simplebayes +License: MIT Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/s/simplebayes/simplebayes-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url: https://github.com/hickeroar/simplebayes +Source: https://files.pythonhosted.org/packages/source/s/simplebayes/simplebayes-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +# make it work not just on TW +BuildRequires: python-rpm-macros BuildArch: noarch %description A memory-based, optional-persistence naïve bayesian text classifier heavily inspired by the python "redisbayes" module. +%python_subpackages + %prep %setup -q -n simplebayes-%{version} %build -python setup.py build +export LANG=C.UTF-8 +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +export LANG=C.UTF-8 +%python_install -%files -%defattr(-,root,root,-) +%check +export LANG=C.UTF-8 +%python_exec setup.py test + +%files %{python_files} %doc README.rst LICENSE %{python_sitelib}/*