From 4d14db1491512fd675707836ebe4177d96293caef85badaf3fdf1f10776d6b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:23:13 +0000 Subject: [PATCH] Accepting request 1277189 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277189 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ansicolor?expand=0&rev=14 --- python-ansicolor.changes | 5 +++++ python-ansicolor.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-ansicolor.changes b/python-ansicolor.changes index ffc9bb4..0b93aef 100644 --- a/python-ansicolor.changes +++ b/python-ansicolor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 13:19:37 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Jan 15 16:33:17 UTC 2022 - Dirk Müller diff --git a/python-ansicolor.spec b/python-ansicolor.spec index 77e865f..0aab034 100644 --- a/python-ansicolor.spec +++ b/python-ansicolor.spec @@ -1,7 +1,7 @@ # # spec file for package python-ansicolor # -# Copyright (c) 2022 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-%{**}} # For license file %define tag a5a5c31dc6de5c864a0c5684ae326972573a712b Name: python-ansicolor @@ -27,7 +26,9 @@ License: Apache-2.0 URL: https://github.com/numerodix/ansicolor Source: https://files.pythonhosted.org/packages/source/a/ansicolor/ansicolor-%{version}.tar.gz Source10: https://raw.githubusercontent.com/numerodix/ansicolor/%{tag}/LICENSE +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -42,15 +43,16 @@ command line programs. cp %{SOURCE10} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/ansicolor +%{python_sitelib}/ansicolor-%{version}*-info %changelog