Hello community, here is the log from the commit of package python-tables for openSUSE:Factory checked in at 2020-05-19 14:50:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tables (Old) and /work/SRC/openSUSE:Factory/.python-tables.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tables" Tue May 19 14:50:01 2020 rev:14 rq:807160 version:3.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tables/python-tables.changes 2019-11-11 21:32:32.432312318 +0100 +++ /work/SRC/openSUSE:Factory/.python-tables.new.2738/python-tables.changes 2020-05-19 14:50:05.208283319 +0200 @@ -1,0 +2,5 @@ +Tue May 19 08:03:09 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tables.spec ++++++ --- /var/tmp/diff_new_pack.bdXftd/_old 2020-05-19 14:50:06.528286246 +0200 +++ /var/tmp/diff_new_pack.bdXftd/_new 2020-05-19 14:50:06.552286300 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-tables # -# 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 @@ -46,6 +46,8 @@ BuildRequires: python3-sphinx_rtd_theme Requires: python-numexpr >= 2.6.2 Requires: python-numpy >= 1.9.3 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: bzip2 Recommends: lzo %python_subpackages @@ -76,6 +78,10 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pttree +%python_clone -a %{buildroot}%{_bindir}/ptrepack +%python_clone -a %{buildroot}%{_bindir}/ptdump +%python_clone -a %{buildroot}%{_bindir}/pt2to3 %python_expand %fdupes %{buildroot}%{$python_sitearch} pushd doc export PYTHONPATH=%{buildroot}%{python3_sitearch} @@ -92,14 +98,26 @@ } popd +%post +%python_install_alternative pttree +%python_install_alternative ptrepack +%python_install_alternative ptdump +%python_install_alternative pt2to3 + +%postun +%python_uninstall_alternative pttree +%python_uninstall_alternative ptrepack +%python_uninstall_alternative ptdump +%python_uninstall_alternative pt2to3 + %files %{python_files} %doc README.rst RELEASE_NOTES.txt THANKS %license LICENSE.txt %license LICENSES/* -%python3_only %{_bindir}/pt2to3 -%python3_only %{_bindir}/ptdump -%python3_only %{_bindir}/ptrepack -%python3_only %{_bindir}/pttree +%python_alternative %{_bindir}/pt2to3 +%python_alternative %{_bindir}/ptdump +%python_alternative %{_bindir}/ptrepack +%python_alternative %{_bindir}/pttree %{python_sitearch}/tables/ %{python_sitearch}/tables-%{version}-py*.egg-info
