Hello community,

here is the log from the commit of package python-pyannotate for 
openSUSE:Leap:15.2 checked in at 2020-05-23 16:06:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pyannotate (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pyannotate.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyannotate"

Sat May 23 16:06:34 2020 rev:16 rq:808113 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pyannotate/python-pyannotate.changes    
2020-03-02 13:20:36.054069678 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-pyannotate.new.2738/python-pyannotate.changes
  2020-05-23 16:06:39.444954948 +0200
@@ -1,0 +2,5 @@
+Mon May 18 20:40:57 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyannotate.spec ++++++
--- /var/tmp/diff_new_pack.QUyh7Y/_old  2020-05-23 16:06:39.776955659 +0200
+++ /var/tmp/diff_new_pack.QUyh7Y/_new  2020-05-23 16:06:39.780955668 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyannotate
 #
-# 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
@@ -31,6 +31,8 @@
 Requires:       python-mypy_extensions
 Requires:       python-six >= 1.11.0
 Requires:       python-typing
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module mypy_extensions}
@@ -53,15 +55,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pyannotate
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative pyannotate
+
+%postun
+%python_uninstall_alternative pyannotate
+
 %files %{python_files}
 %doc README.md example/
 %license LICENSE
-%python3_only %{_bindir}/pyannotate
+%python_alternative %{_bindir}/pyannotate
 %{python_sitelib}/*
 
 %changelog


Reply via email to