- 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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user