- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mmllib?expand=0&rev=4
This commit is contained in:
2025-06-05 11:44:39 +00:00
committed by Git OBS Bridge
parent 51522e502f
commit 1dd2446331
2 changed files with 12 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 5 11:42:22 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Wed Aug 9 20:51:25 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@@ -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