From c3c2a27d0c85f16209f505fc6df7e9639057e17e45ce1d9c51e81848be13ad28 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 15:24:25 +0000 Subject: [PATCH] Accepting request 1282833 from home:fstegmeier:branches:devel:languages:python - fix usage of libalternatives OBS-URL: https://build.opensuse.org/request/show/1282833 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-audiogrep?expand=0&rev=8 --- python-audiogrep.changes | 5 +++++ python-audiogrep.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-audiogrep.changes b/python-audiogrep.changes index 4efdff1..13e1446 100644 --- a/python-audiogrep.changes +++ b/python-audiogrep.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 15:15:00 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + ------------------------------------------------------------------- Tue May 13 16:07:15 UTC 2025 - Markéta Machová diff --git a/python-audiogrep.spec b/python-audiogrep.spec index 52698dc..83300ab 100644 --- a/python-audiogrep.spec +++ b/python-audiogrep.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-audiogrep Version: 0.1.5 Release: 0 @@ -27,13 +28,13 @@ Source: https://files.pythonhosted.org/packages/source/a/audiogrep/audio BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: ffmpeg Requires: pocketsphinx Requires: python-pydub -Requires(post): alts -Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pydub} @@ -55,11 +56,9 @@ based on search phrases. %python_clone -a %{buildroot}%{_bindir}/audiogrep %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative audiogrep - -%postun -%python_uninstall_alternative audiogrep +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative audiogrep %files %{python_files} %doc README.md