Hello community,
here is the log from the commit of package python-modernize for
openSUSE:Factory checked in at 2020-05-26 17:23:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-modernize (Old)
and /work/SRC/openSUSE:Factory/.python-modernize.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-modernize"
Tue May 26 17:23:05 2020 rev:3 rq:808676 version:0.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-modernize/python-modernize.changes
2020-01-13 22:20:52.210500023 +0100
+++
/work/SRC/openSUSE:Factory/.python-modernize.new.2738/python-modernize.changes
2020-05-26 17:23:16.948485881 +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.PbnIic/_old 2020-05-26 17:23:17.636487361 +0200
+++ /var/tmp/diff_new_pack.PbnIic/_new 2020-05-26 17:23:17.640487369 +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