From 0cebe94ad36ddaab1877fbce06ee2e3ed1d03d9afa40254c6e8572dc47dfcf2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 5 Jun 2025 10:29:38 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=8 --- python-misaka.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/python-misaka.spec b/python-misaka.spec index d3a5064..f2340ff 100644 --- a/python-misaka.spec +++ b/python-misaka.spec @@ -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