From 08913040260188f7fbd352770b467d4c175c58cf1101d714f89c40097d828eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Jul 2025 08:07:44 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cssutils?expand=0&rev=66 --- python-cssutils.changes | 5 +++++ python-cssutils.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) 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