15
0

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
This commit is contained in:
2025-05-13 15:23:13 +00:00
committed by Git OBS Bridge
parent 95bf7761cd
commit 4d14db1491
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 13 13:19:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Sat Jan 15 16:33:17 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -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