From 80ce415de2e63f02069d1aaa053b885117bbf364019830b2b8134b517dcd100e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 11:39:09 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-husl?expand=0&rev=7 --- python-husl.changes | 5 +++++ python-husl.spec | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-husl.changes b/python-husl.changes index 0225a90..a4532d9 100644 --- a/python-husl.changes +++ b/python-husl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 11:38:51 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Jan 4 14:29:22 UTC 2019 - Jan Engelhardt diff --git a/python-husl.spec b/python-husl.spec index 9982392..18bdc9f 100644 --- a/python-husl.spec +++ b/python-husl.spec @@ -1,7 +1,7 @@ # # spec file for package python-husl # -# Copyright (c) 2019 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_with test Name: python-husl Version: 4.0.3 @@ -24,13 +23,14 @@ Release: 0 Summary: A Python implementation of the "Human-friendly HSL" (HSLuv) color model License: MIT Group: Development/Languages/Python -Url: http://www.husl-colors.org +URL: https://www.husl-colors.org Source: https://files.pythonhosted.org/packages/source/h/husl/husl-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -40,10 +40,10 @@ A Python implementation of HUSL (revision 3). %setup -q -n husl-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} @@ -52,8 +52,8 @@ A Python implementation of HUSL (revision 3). %endif %files %{python_files} -%defattr(-,root,root,-) %doc README.md -%{python_sitelib}/* +%{python_sitelib}/husl +%{python_sitelib}/husl-%{version}*-info %changelog From 9ef624dd11e245f756842f6298b72addea9a50ee4927cedd6c3caf0a5bb4731f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 11:42:03 +0000 Subject: [PATCH 2/2] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-husl?expand=0&rev=8 --- python-husl.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-husl.spec b/python-husl.spec index 18bdc9f..422af6f 100644 --- a/python-husl.spec +++ b/python-husl.spec @@ -53,7 +53,8 @@ A Python implementation of HUSL (revision 3). %files %{python_files} %doc README.md -%{python_sitelib}/husl +%{python_sitelib}/husl.py %{python_sitelib}/husl-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/husl* %changelog