From e460edf6e0b1f9dc872ef676793e7a4c42c544fb2df312575bcf074356b320c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 12:40:40 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-num2words?expand=0&rev=18 --- python-num2words.changes | 5 +++++ python-num2words.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-num2words.changes b/python-num2words.changes index b1f9bf6..f801ea6 100644 --- a/python-num2words.changes +++ b/python-num2words.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 12:40:20 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 2 14:47:23 UTC 2025 - Markéta Machová diff --git a/python-num2words.spec b/python-num2words.spec index 42e052c..7ed6be5 100644 --- a/python-num2words.spec +++ b/python-num2words.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-num2words Version: 0.5.13 Release: 0 @@ -27,11 +28,11 @@ Source: https://files.pythonhosted.org/packages/source/n/num2words/num2w BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-docopt >= 0.6.2 -Requires(post): alts -Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module delegator.py} @@ -60,11 +61,8 @@ It supports multiple languages and can even generate ordinal numbers like "forty # test_cli.py has 'python' command hardcoded %pytest -k "not test_cli" tests -%post -%python_install_alternative num2words - -%postun -%python_uninstall_alternative num2words +%pre +%python_libalternatives_reset_alternative num2words %files %{python_files} %doc CHANGES.rst README.rst