diff --git a/python-MMLlib.changes b/python-MMLlib.changes index 2c712db..d597b46 100644 --- a/python-MMLlib.changes +++ b/python-MMLlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 5 11:42:22 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Wed Aug 9 20:51:25 UTC 2023 - Matej Cepl diff --git a/python-MMLlib.spec b/python-MMLlib.spec index b297885..e59fde8 100644 --- a/python-MMLlib.spec +++ b/python-MMLlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-MMLlib # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-MMLlib Version: 1.4 Release: 0 @@ -26,10 +27,10 @@ Source: https://files.pythonhosted.org/packages/source/M/MMLlib/MMLlib-% BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires: alts BuildArch: noarch %python_subpackages @@ -54,11 +55,9 @@ Linux and BSD, with a number of extensions and changes. %check %pyunittest -v -%post -%python_install_alternative mml2musicxml mmllint - -%postun -%python_uninstall_alternative mml2musicxml +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative mml2musicxml %files %{python_files} %doc CHANGELOG.rst MMLFILE.rst README.rst