Hello community,
here is the log from the commit of package python-modernize for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-modernize (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-modernize.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-modernize"
Thu May 28 20:10:38 2020 rev:2 rq:809502 version:0.7
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-modernize/python-modernize.changes
2020-03-27 16:48:02.123930196 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-modernize.new.3606/python-modernize.changes
2020-05-28 20:10:39.167087693 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:49 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-modernize.spec ++++++
--- /var/tmp/diff_new_pack.W4Q5fa/_old 2020-05-28 20:10:39.459088563 +0200
+++ /var/tmp/diff_new_pack.W4Q5fa/_new 2020-05-28 20:10:39.459088563 +0200
@@ -28,6 +28,8 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-dbm
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module dbm}
@@ -46,15 +48,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/python-modernize
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
+%post
+%python_install_alternative python-modernize
+
+%postun
+%python_uninstall_alternative python-modernize
+
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE
-%python3_only %{_bindir}/python-modernize
+%python_alternative %{_bindir}/python-modernize
%{python_sitelib}/*
%changelog