Hello community, here is the log from the commit of package python-pyssim for openSUSE:Factory checked in at 2020-05-20 18:47:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyssim (Old) and /work/SRC/openSUSE:Factory/.python-pyssim.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyssim" Wed May 20 18:47:58 2020 rev:2 rq:807679 version:0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyssim/python-pyssim.changes 2019-02-24 17:18:26.312418081 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyssim.new.2738/python-pyssim.changes 2020-05-20 18:48:06.457638887 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:43 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyssim.spec ++++++ --- /var/tmp/diff_new_pack.7IhzmI/_old 2020-05-20 18:48:07.697641673 +0200 +++ /var/tmp/diff_new_pack.7IhzmI/_new 2020-05-20 18:48:07.701641683 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyssim # -# 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 @@ -32,6 +32,8 @@ Requires: python-Pillow Requires: python-numpy Requires: python-scipy +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Pillow} @@ -52,6 +54,7 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pyssim %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,10 +66,16 @@ $python -m ssim --cw --width 128 --height 128 test-images/test3-orig.jpg test-images/test3-rot.jpg | grep 0.938 } +%post +%python_install_alternative pyssim + +%postun +%python_uninstall_alternative pyssim + %files %{python_files} %license LICENSE.md %doc README.md -%python3_only %{_bindir}/pyssim +%python_alternative %{_bindir}/pyssim %{python_sitelib}/* %changelog
