From 5452ecb543f018006f36d6a8f96e13654161f938353811dd1ad3356605552dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 18 May 2020 08:12:17 +0000 Subject: [PATCH] Accepting request 806795 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/806795 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-webruntime?expand=0&rev=8 --- python-webruntime.changes | 5 +++++ python-webruntime.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-webruntime.changes b/python-webruntime.changes index f95825b..14f52e8 100644 --- a/python-webruntime.changes +++ b/python-webruntime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 18 07:25:36 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Mar 19 15:36:31 UTC 2019 - Tomáš Chvátal diff --git a/python-webruntime.spec b/python-webruntime.spec index 39d9146..120eaa5 100644 --- a/python-webruntime.spec +++ b/python-webruntime.spec @@ -1,7 +1,7 @@ # # spec file for package python-webruntime # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-dialite +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module dialite} @@ -51,15 +53,22 @@ desktop app, such as XUL (based on Firefox) or NW.js. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/webruntime %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative webruntime + +%postun +%python_uninstall_alternative webruntime + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/webruntime +%python_alternative %{_bindir}/webruntime %{python_sitelib}/* %changelog