14
0

Accepting request 557296 from home:jubalh:branches:Publishing

- Use python singlespec

OBS-URL: https://build.opensuse.org/request/show/557296
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplebayes?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2017-12-15 10:37:50 +00:00
committed by Git OBS Bridge
parent 3ebcbc6898
commit 2446b45767
2 changed files with 27 additions and 11 deletions

View File

@@ -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

View File

@@ -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}/*