From ddb6a24d145e0963aa2085ff5bc5c8a71f5bb1ed169e0f714976e7a719484e82 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 15:59:54 +0000 Subject: [PATCH] Accepting request 1282843 from home:fstegmeier:branches:devel:languages:python - fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1282843 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-TermRecord?expand=0&rev=14 --- python-TermRecord.changes | 5 +++++ python-TermRecord.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-TermRecord.changes b/python-TermRecord.changes index 5ce64f0..43a9b6b 100644 --- a/python-TermRecord.changes +++ b/python-TermRecord.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 15:32:41 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + ------------------------------------------------------------------- Mon May 12 15:01:49 UTC 2025 - Markéta Machová diff --git a/python-TermRecord.spec b/python-TermRecord.spec index 4ae670e..fc8206a 100644 --- a/python-TermRecord.spec +++ b/python-TermRecord.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-TermRecord Version: 1.2.5 Release: 0 @@ -26,11 +27,11 @@ Source: https://files.pythonhosted.org/packages/source/T/TermRecord/Term BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-Jinja2 >= 2.6 -Requires(post): alts -Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Jinja2 >= 2.6} @@ -55,11 +56,9 @@ it can be shipped to anyone that has a browser. Fonts are embedded, too. %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/TermRecord -%post -%python_install_alternative TermRecord - -%postun -%python_uninstall_alternative TermRecord +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative TermRecord %files %{python_files} %license LICENSE