Hello community, here is the log from the commit of package python-yt for openSUSE:Factory checked in at 2020-05-16 22:27:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-yt (Old) and /work/SRC/openSUSE:Factory/.python-yt.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-yt" Sat May 16 22:27:28 2020 rev:3 rq:805896 version:3.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-yt/python-yt.changes 2019-03-13 16:42:31.194633638 +0100 +++ /work/SRC/openSUSE:Factory/.python-yt.new.2738/python-yt.changes 2020-05-16 22:27:33.117423068 +0200 @@ -1,0 +2,5 @@ +Fri May 15 12:52:19 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-yt.spec ++++++ --- /var/tmp/diff_new_pack.dJKwgC/_old 2020-05-16 22:27:33.941424758 +0200 +++ /var/tmp/diff_new_pack.dJKwgC/_new 2020-05-16 22:27:33.945424767 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-yt # -# 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 @@ -36,6 +36,8 @@ Requires: python-numpy >= 1.10.4 Requires: python-setuptools >= 19.6 Requires: python-sympy >= 1.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-bottle Recommends: python-girder-client Recommends: python-jupyter_ipython >= 1.0 @@ -64,13 +66,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/yt +%python_clone -a %{buildroot}%{_bindir}/iyt %python_expand %fdupes %{buildroot}%{$python_sitearch} +%post +%python_install_alternative yt +%python_install_alternative iyt + +%postun +%python_uninstall_alternative yt +%python_uninstall_alternative iyt + %files %{python_files} %doc README.md %license COPYING.txt -%python3_only %{_bindir}/iyt -%python3_only %{_bindir}/yt +%python_alternative %{_bindir}/iyt +%python_alternative %{_bindir}/yt %{python_sitearch}/* %changelog