diff --git a/python-css-parser.changes b/python-css-parser.changes index 208f04d..64baaf9 100644 --- a/python-css-parser.changes +++ b/python-css-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 10:42:57 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Nov 10 12:20:45 UTC 2023 - Dirk Müller diff --git a/python-css-parser.spec b/python-css-parser.spec index 0a3772e..04f7c6d 100644 --- a/python-css-parser.spec +++ b/python-css-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-css-parser # -# Copyright (c) 2023 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 @@ -27,10 +27,12 @@ URL: https://github.com/ebook-utils/css-parser Source: https://github.com/ebook-utils/css-parser/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module chardet} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -Requires: python-chardet +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-chardet BuildArch: noarch %python_subpackages @@ -52,10 +54,10 @@ local to each file sed -i "1d" src/css_parser/{parse,codec,sac,serialize,scripts/csscapture,_codec2,errorhandler,scripts/cssparse,_codec3,scripts/csscombine,tokenize2,version,encutils/__init__,__init__}.py # Fix non-executable scripts %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check