diff --git a/python-cssutils.changes b/python-cssutils.changes index 2b0557d..8f365b2 100644 --- a/python-cssutils.changes +++ b/python-cssutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 8 08:07:18 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu Jun 26 08:45:49 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-cssutils.spec b/python-cssutils.spec index bc6b38d..1d9387c 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-cssutils Version: 2.11.1 @@ -31,11 +32,11 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-more-itertools -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -56,11 +57,8 @@ A Python package to parse and build CSS Cascading Style Sheets. DOM only, not an %python_expand %fdupes %{buildroot}%{$python_sitelib}/ -%post -%{python_install_alternative csscapture csscombine cssparse} - -%postun -%python_uninstall_alternative csscapture +%pre +%python_libalternatives_reset_alternative csscapture %files %{python_files} %license LICENSE