From 39a1e755c6369f64a4aee39c2d1324c0be3cbcefa2ee795c6d466413b973f243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:30:39 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patiencediff?expand=0&rev=26 --- python-patiencediff.changes | 5 +++++ python-patiencediff.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-patiencediff.changes b/python-patiencediff.changes index 94fa4a7..6bad874 100644 --- a/python-patiencediff.changes +++ b/python-patiencediff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:28:12 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 09:13:27 UTC 2025 - Markéta Machová diff --git a/python-patiencediff.spec b/python-patiencediff.spec index c2d4ae5..dafa1cf 100644 --- a/python-patiencediff.spec +++ b/python-patiencediff.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-patiencediff Version: 0.2.15 Release: 0 @@ -29,10 +30,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 %python_subpackages %description @@ -50,11 +51,8 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_clone -a %{buildroot}%{_bindir}/patiencediff -%post -%python_install_alternative patiencediff - -%postun -%python_uninstall_alternative patiencediff +%pre +%python_libalternatives_reset_alternative patiencediff %check %pytest