From 65caaa7a2ee2aaf2fb7b5d6bf1304ae851c89b83c45e9d77e9d700e6a7328535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 14:47:39 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-num2words?expand=0&rev=16 --- python-num2words.changes | 5 +++++ python-num2words.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-num2words.changes b/python-num2words.changes index da9fb08..b1f9bf6 100644 --- a/python-num2words.changes +++ b/python-num2words.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 14:47:23 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Dec 7 20:48:41 UTC 2023 - Dirk Müller diff --git a/python-num2words.spec b/python-num2words.spec index a4641d1..42e052c 100644 --- a/python-num2words.spec +++ b/python-num2words.spec @@ -1,7 +1,7 @@ # # spec file for package python-num2words # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-num2words Version: 0.5.13 Release: 0 @@ -25,12 +24,14 @@ License: LGPL-2.1-only Group: Development/Languages/Python URL: https://github.com/savoirfairelinux/num2words Source: https://files.pythonhosted.org/packages/source/n/num2words/num2words-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-docopt >= 0.6.2 -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module delegator.py} @@ -48,10 +49,10 @@ It supports multiple languages and can even generate ordinal numbers like "forty %setup -q -n num2words-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/num2words %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -68,7 +69,8 @@ It supports multiple languages and can even generate ordinal numbers like "forty %files %{python_files} %doc CHANGES.rst README.rst %license COPYING -%{python_sitelib}/* +%{python_sitelib}/num2words +%{python_sitelib}/num2words-%{version}*-info %python_alternative %{_bindir}/num2words %changelog