From e1feb59fa7c25f1618c8269ff0d999517f78738408b19d064abbf0756e208dbe Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 13:11:04 +0000 Subject: [PATCH] - fix usage of libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=45 --- python-html2text.changes | 5 +++++ python-html2text.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-html2text.changes b/python-html2text.changes index 84e4eea..18b96c6 100644 --- a/python-html2text.changes +++ b/python-html2text.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 13:09:18 UTC 2025 - Nico Krapp + +- fix usage of libalternatives + ------------------------------------------------------------------- Tue May 27 16:19:15 UTC 2025 - Markéta Machová diff --git a/python-html2text.spec b/python-html2text.spec index 990d8ca..ef9ea23 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %define upname html2text %{?sle15_python_module_pythons} Name: python-%{upname} @@ -30,10 +31,10 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): alts -Requires(preun): alts +Requires: alts Provides: html2text = %{version}-%{release} Obsoletes: html2text < %{version}-%{release} BuildArch: noarch @@ -60,11 +61,11 @@ rm -r *.egg-info/ %python_clone -a %{buildroot}%{_bindir}/%{upname} -%post -%python_install_alternative html2text +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative -%postun -%python_uninstall_alternative html2text +# post and postun macro call is not needed with only libalternatives %check %pytest