Hello community,

here is the log from the commit of package python-pyssim for openSUSE:Leap:15.2 
checked in at 2020-05-21 12:59:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pyssim (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pyssim.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyssim"

Thu May 21 12:59:57 2020 rev:2 rq:807815 version:0.4

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pyssim/python-pyssim.changes    
2020-02-19 18:46:48.318851080 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-pyssim.new.2738/python-pyssim.changes  
2020-05-21 13:00:07.146896931 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:43 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyssim.spec ++++++
--- /var/tmp/diff_new_pack.wnS2Ij/_old  2020-05-21 13:00:07.510897723 +0200
+++ /var/tmp/diff_new_pack.wnS2Ij/_new  2020-05-21 13:00:07.518897741 +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


Reply via email to