From 2bbb43489364ceff54ce78d732c08a8e8f97c6f220f8a3115b70f147222880ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 11 Aug 2025 14:54:26 +0000 Subject: [PATCH] - Make the libalternatives transition conditional OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-breathe?expand=0&rev=62 --- python-breathe.changes | 5 +++++ python-breathe.spec | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/python-breathe.changes b/python-breathe.changes index c80e57a..c3c67f4 100644 --- a/python-breathe.changes +++ b/python-breathe.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 11 14:53:24 UTC 2025 - Markéta Machová + +- Make the libalternatives transition conditional + ------------------------------------------------------------------- Tue Jun 17 09:04:47 UTC 2025 - Markéta Machová diff --git a/python-breathe.spec b/python-breathe.spec index 7bc71c5..0bbfe1e 100644 --- a/python-breathe.spec +++ b/python-breathe.spec @@ -16,7 +16,11 @@ # +%if 0%{?suse_version} > 1500 %bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-breathe Version: 4.36.0 @@ -31,10 +35,15 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with libalternatives} +BuildRequires: alts Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif Requires: python-Sphinx >= 7.2 Provides: python-sphinxcontrib-breathe = %{version} Obsoletes: python-sphinxcontrib-breathe < %{version} @@ -62,6 +71,12 @@ able to read and render Doxygen xml output. %pre %python_libalternatives_reset_alternative breathe-apidoc +%post +%python_install_alternative breathe-apidoc + +%postun +%python_uninstall_alternative breathe-apidoc + %files %{python_files} %doc README.rst %license LICENSE