From edc244d2e634117ee372743519a8b9d835bf20e49f9bd6e43192528a48adb562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 09:21:51 +0000 Subject: [PATCH] Accepting request 808643 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808643 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-misaka?expand=0&rev=4 --- python-misaka.changes | 5 +++++ python-misaka.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-misaka.changes b/python-misaka.changes index cc9a912..1881b66 100644 --- a/python-misaka.changes +++ b/python-misaka.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 06:50:47 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu Jan 16 08:24:20 UTC 2020 - Tomáš Chvátal diff --git a/python-misaka.spec b/python-misaka.spec index f043a8b..07e7fe3 100644 --- a/python-misaka.spec +++ b/python-misaka.spec @@ -32,6 +32,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: tidy Requires: python-cffi >= 1.12.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -45,6 +47,7 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/misaka %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -52,10 +55,16 @@ A CFFI binding for Hoedown_ (version 3), a markdown parsing library. $python tests/run_tests.py } +%post +%python_install_alternative misaka + +%postun +%python_uninstall_alternative misaka + %files %{python_files} %license LICENSE.txt %doc README.rst -%python3_only %{_bindir}/misaka +%python_alternative %{_bindir}/misaka %{python_sitearch}/* %changelog