Hello community,

here is the log from the commit of package python-identify for openSUSE:Factory 
checked in at 2020-05-26 17:49:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-identify (Old)
 and      /work/SRC/openSUSE:Factory/.python-identify.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-identify"

Tue May 26 17:49:36 2020 rev:7 rq:808790 version:1.4.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-identify/python-identify.changes  
2020-04-09 23:18:43.250357782 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-identify.new.2738/python-identify.changes    
    2020-05-26 17:49:38.747923345 +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.Dan1iY/_old  2020-05-26 17:49:39.755925554 +0200
+++ /var/tmp/diff_new_pack.Dan1iY/_new  2020-05-26 17:49:39.759925563 +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


Reply via email to