diff --git a/python-qtconsole.changes b/python-qtconsole.changes index 1f20065..8515ba6 100644 --- a/python-qtconsole.changes +++ b/python-qtconsole.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 26 18:34:22 UTC 2021 - Ben Greiner + +- Update to version 5.2.1 + * Fix error when deleting CallTipWidget. + * Another fix for the 'Erase in Line' ANSI code. +- Enable libalternatives as with the rest of the jupyter commands + ------------------------------------------------------------------- Sun Nov 14 14:14:46 UTC 2021 - Ben Greiner diff --git a/python-qtconsole.spec b/python-qtconsole.spec index 42c1dfb..5191e85 100644 --- a/python-qtconsole.spec +++ b/python-qtconsole.spec @@ -16,10 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-qtconsole -Version: 5.2.0 +Version: 5.2.1 Release: 0 Summary: Jupyter Qt console License: BSD-3-Clause @@ -46,8 +52,13 @@ Requires: python-jupyter-core Requires: python-traitlets # QtPy does note require or depend on one of the frameworks itself Requires: (python-qt5 or python-pyside2) +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun):update-alternatives +%endif Provides: python-jupyter_qtconsole = %{version} Obsoletes: python-jupyter_qtconsole < %{version} BuildArch: noarch @@ -122,6 +133,9 @@ export QT_QPA_PLATFORM="offscreen" # now with test_input too. But does not seem to happen on the build server, only locally. %pytest -ra -k "not (test_00 and (test_scroll or test_debug or test_input))" +%pre +%python_libalternatives_reset_alternative jupyter-qtconsole + %post %python_install_alternative jupyter-qtconsole diff --git a/qtconsole-5.2.0.tar.gz b/qtconsole-5.2.0.tar.gz deleted file mode 100644 index 1fe6cfb..0000000 --- a/qtconsole-5.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6bb4df839609f240194213407872076f871e3a3884cf8e785068e8c7f39344c6 -size 429597 diff --git a/qtconsole-5.2.1.tar.gz b/qtconsole-5.2.1.tar.gz new file mode 100644 index 0000000..57f4284 --- /dev/null +++ b/qtconsole-5.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb3b9f0d674055e627c1097779c0d5e028176706d3b6be39cf52235f6ddcc88e +size 429573