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..422af6f 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,9 @@ A Python implementation of HUSL (revision 3). %endif %files %{python_files} -%defattr(-,root,root,-) %doc README.md -%{python_sitelib}/* +%{python_sitelib}/husl.py +%{python_sitelib}/husl-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/husl* %changelog