Hello community,
here is the log from the commit of package python-identify for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:09:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-identify (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-identify.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-identify"
Thu May 28 20:09:02 2020 rev:3 rq:809065 version:1.4.14
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-identify/python-identify.changes
2020-04-12 15:39:39.358069570 +0200
+++
/work/SRC/openSUSE:Leap:15.2/.python-identify.new.3606/python-identify.changes
2020-05-28 20:09:05.034807502 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:23 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-identify.spec ++++++
--- /var/tmp/diff_new_pack.AA4OnP/_old 2020-05-28 20:09:05.426808669 +0200
+++ /var/tmp/diff_new_pack.AA4OnP/_new 2020-05-28 20:09:05.426808669 +0200
@@ -31,6 +31,8 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Suggests: python-editdistance
BuildArch: noarch
%python_subpackages
@@ -46,15 +48,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/identify-cli
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py pytest
+%post
+%python_install_alternative identify-cli
+
+%postun
+%python_uninstall_alternative identify-cli
+
%files %{python_files}
%doc README.md
%license LICENSE
-%python3_only %{_bindir}/identify-cli
+%python_alternative %{_bindir}/identify-cli
%{python_sitelib}/*
%changelog