Hello community, here is the log from the commit of package python-xonsh for openSUSE:Factory checked in at 2020-05-28 09:06:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-xonsh (Old) and /work/SRC/openSUSE:Factory/.python-xonsh.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xonsh" Thu May 28 09:06:40 2020 rev:4 rq:805900 version:0.9.17 Changes: -------- --- /work/SRC/openSUSE:Factory/python-xonsh/python-xonsh.changes 2020-04-18 00:29:01.653878019 +0200 +++ /work/SRC/openSUSE:Factory/.python-xonsh.new.3606/python-xonsh.changes 2020-05-28 09:06:43.523592174 +0200 @@ -1,0 +2,5 @@ +Fri May 15 12:55:14 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-xonsh.spec ++++++ --- /var/tmp/diff_new_pack.vjDBzS/_old 2020-05-28 09:06:44.339594621 +0200 +++ /var/tmp/diff_new_pack.vjDBzS/_new 2020-05-28 09:06:44.343594633 +0200 @@ -43,6 +43,8 @@ Requires: python-prompt_toolkit Requires: python-pygments >= 2.2 Requires: python-setproctitle +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -58,6 +60,9 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/xonsh-cat +%python_clone -a %{buildroot}%{_bindir}/xonsh +%python_clone -a %{buildroot}%{_bindir}/xon.sh %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -66,12 +71,22 @@ # test_xonsh_no_close_fds the makefile fails to compile %pytest -k 'not (test_man_completion or test_xonsh_no_close_fds)' +%post +%python_install_alternative xonsh-cat +%python_install_alternative xonsh +%python_install_alternative xon.sh + +%postun +%python_uninstall_alternative xonsh-cat +%python_uninstall_alternative xonsh +%python_uninstall_alternative xon.sh + %files %{python_files} %doc README.rst CHANGELOG.rst %license license %{python_sitelib}/* -%python3_only %{_bindir}/xon.sh -%python3_only %{_bindir}/xonsh -%python3_only %{_bindir}/xonsh-cat +%python_alternative %{_bindir}/xon.sh +%python_alternative %{_bindir}/xonsh +%python_alternative %{_bindir}/xonsh-cat %changelog
