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