Hello community,
here is the log from the commit of package python-pyannotate for
openSUSE:Factory checked in at 2020-05-19 14:49:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyannotate (Old)
and /work/SRC/openSUSE:Factory/.python-pyannotate.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyannotate"
Tue May 19 14:49:22 2020 rev:6 rq:807047 version:1.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyannotate/python-pyannotate.changes
2019-09-27 14:53:10.532027241 +0200
+++
/work/SRC/openSUSE:Factory/.python-pyannotate.new.2738/python-pyannotate.changes
2020-05-19 14:49:23.200190159 +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.dW1qTE/_old 2020-05-19 14:49:24.288192572 +0200
+++ /var/tmp/diff_new_pack.dW1qTE/_new 2020-05-19 14:49:24.300192598 +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