forked from pool/python-simplebayes
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:
committed by
Git OBS Bridge
parent
3ebcbc6898
commit
2446b45767
@@ -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
|
Sun Nov 6 18:37:58 UTC 2016 - mailaender@opensuse.org
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-simplebayes
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -13,36 +13,47 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# 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
|
Name: python-simplebayes
|
||||||
Version: 1.5.8
|
Version: 1.5.8
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT
|
|
||||||
Summary: A memory-based, optional-persistence naïve bayesian text classifier
|
Summary: A memory-based, optional-persistence naïve bayesian text classifier
|
||||||
Url: https://github.com/hickeroar/simplebayes
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.python.org/packages/source/s/simplebayes/simplebayes-%{version}.tar.gz
|
Url: https://github.com/hickeroar/simplebayes
|
||||||
BuildRequires: python-devel
|
Source: https://files.pythonhosted.org/packages/source/s/simplebayes/simplebayes-%{version}.tar.gz
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
# make it work not just on TW
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A memory-based, optional-persistence naïve bayesian text classifier
|
A memory-based, optional-persistence naïve bayesian text classifier
|
||||||
heavily inspired by the python "redisbayes" module.
|
heavily inspired by the python "redisbayes" module.
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n simplebayes-%{version}
|
%setup -q -n simplebayes-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
export LANG=C.UTF-8
|
||||||
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
export LANG=C.UTF-8
|
||||||
|
%python_install
|
||||||
|
|
||||||
%files
|
%check
|
||||||
%defattr(-,root,root,-)
|
export LANG=C.UTF-8
|
||||||
|
%python_exec setup.py test
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user