Accepting request 1283049 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1283049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-misaka?expand=0&rev=4
This commit is contained in:
2025-06-05 18:35:26 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 6 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 5 11:04:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 2 09:01:56 UTC 2025 - Markéta Machová <mmachova@suse.com>
+7 -6
View File
@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-misaka
Version: 2.1.1
Release: 0
@@ -29,12 +30,12 @@ BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: tidy
Requires: alts
Requires: python-cffi >= 1.12.0
Requires(post): alts
Requires(postun): alts
%python_subpackages
%description
@@ -56,11 +57,11 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library.
$python tests/run_tests.py
}
%post
%python_install_alternative misaka
%pre
# removing old update-alternatives entries
%python_libalternatives_reset_alternative misaka
%postun
%python_uninstall_alternative misaka
# post and postun calls are not needed with libalternatives only
%files %{python_files}
%license LICENSE.txt