From ab558f2332ee3885f6d2f3462797de364c980b7122343c889a04b3f0a128d99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 10:08:44 +0000 Subject: [PATCH] Accepting request 809256 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809256 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexx?expand=0&rev=14 --- python-flexx.changes | 5 +++++ python-flexx.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-flexx.changes b/python-flexx.changes index b943d84..24bc02c 100644 --- a/python-flexx.changes +++ b/python-flexx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 06:34:17 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue May 7 10:39:18 UTC 2019 - pgajdos@suse.com diff --git a/python-flexx.spec b/python-flexx.spec index 43d85b8..4268a50 100644 --- a/python-flexx.spec +++ b/python-flexx.spec @@ -1,7 +1,7 @@ # # spec file for package python-flexx # -# 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 @@ -43,6 +43,8 @@ Requires: python-dialite >= 0.5.2 Requires: python-pscript >= 0.7.0 Requires: python-tornado Requires: python-webruntime >= 0.5.6 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-imageio Recommends: python-numpy Recommends: python-vispy @@ -67,16 +69,23 @@ document. It also works in the Jupyter notebook. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/flexx %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # Do not run tests, they require online access to jquery/etc. #%%pytest +%post +%python_install_alternative flexx + +%postun +%python_uninstall_alternative flexx + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/flexx +%python_alternative %{_bindir}/flexx %{python_sitelib}/* %changelog