Hello community, here is the log from the commit of package python-imagecodecs for openSUSE:Factory checked in at 2020-05-26 17:49:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-imagecodecs (Old) and /work/SRC/openSUSE:Factory/.python-imagecodecs.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-imagecodecs" Tue May 26 17:49:32 2020 rev:4 rq:808789 version:2019.5.22 Changes: -------- --- /work/SRC/openSUSE:Factory/python-imagecodecs/python-imagecodecs.changes 2020-04-23 18:37:07.252854877 +0200 +++ /work/SRC/openSUSE:Factory/.python-imagecodecs.new.2738/python-imagecodecs.changes 2020-05-26 17:49:35.915917138 +0200 @@ -1,0 +2,5 @@ +Mon May 25 10:59:24 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-imagecodecs.spec ++++++ --- /var/tmp/diff_new_pack.DPRbAu/_old 2020-05-26 17:49:36.551918532 +0200 +++ /var/tmp/diff_new_pack.DPRbAu/_new 2020-05-26 17:49:36.555918541 +0200 @@ -54,6 +54,8 @@ BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(zlib) Requires: python-numpy >= 1.11.3 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-Pillow Recommends: python-blosc Recommends: python-lz4 @@ -83,6 +85,7 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/imagecodecs %{python_expand rm -rf %{buildroot}%{$python_sitearch}/imagecodecs/licenses/ %fdupes %{buildroot}%{$python_sitearch} } @@ -94,10 +97,16 @@ %pytest_arch tests mv __imagecodecs imagecodecs +%post +%python_install_alternative imagecodecs + +%postun +%python_uninstall_alternative imagecodecs + %files %{python_files} %license LICENSE imagecodecs/licenses/* %doc README.rst -%python3_only %{_bindir}/imagecodecs +%python_alternative %{_bindir}/imagecodecs %{python_sitearch}/* %changelog
