From 9690e6eb6fefd39f87c9a0b58ae8971d094afda275f2f864de3eeb43159b5b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 12:03:30 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplebayes?expand=0&rev=6 --- python-simplebayes.changes | 5 +++++ python-simplebayes.spec | 19 +++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/python-simplebayes.changes b/python-simplebayes.changes index 6c5b766..6c3ee96 100644 --- a/python-simplebayes.changes +++ b/python-simplebayes.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 12:03:18 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Dec 15 10:43:10 UTC 2017 - tchvatal@suse.com diff --git a/python-simplebayes.spec b/python-simplebayes.spec index ca77298..1789fab 100644 --- a/python-simplebayes.spec +++ b/python-simplebayes.spec @@ -1,7 +1,7 @@ # # spec file for package python-simplebayes # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,20 +12,21 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-simplebayes Version: 1.5.8 Release: 0 Summary: A memory-based, optional-persistence naïve bayesian text classifier License: MIT Group: Development/Languages/Python -Url: https://github.com/hickeroar/simplebayes +URL: https://github.com/hickeroar/simplebayes Source: https://files.pythonhosted.org/packages/source/s/simplebayes/simplebayes-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,14 +41,16 @@ heavily inspired by the python "redisbayes" module. %build export LANG=C.UTF-8 -%python_build +%pyproject_wheel %install export LANG=C.UTF-8 -%python_install +%pyproject_install %files %{python_files} -%doc README.rst LICENSE -%{python_sitelib}/* +%license LICENSE +%doc README.rst +%{python_sitelib}/simplebayes +%{python_sitelib}/simplebayes-%{version}*-info %changelog