Hello community,

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

Package is "python-esptool"

Thu May 28 09:17:36 2020 rev:6 rq:809394 version:2.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-esptool/python-esptool.changes    
2020-03-04 09:39:45.089904266 +0100
+++ /work/SRC/openSUSE:Factory/.python-esptool.new.3606/python-esptool.changes  
2020-05-28 09:17:37.757007601 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:07 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-esptool.spec ++++++
--- /var/tmp/diff_new_pack.L0PVhB/_old  2020-05-28 09:17:38.413009149 +0200
+++ /var/tmp/diff_new_pack.L0PVhB/_new  2020-05-28 09:17:38.417009158 +0200
@@ -37,8 +37,9 @@
 Requires:       python-ecdsa
 Requires:       python-pyaes
 Requires:       python-pyserial >= 3.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -57,9 +58,9 @@
 
 %install
 %python_install
-%python_clone %{buildroot}%{_bindir}/esptool.py
-%python_clone %{buildroot}%{_bindir}/espsecure.py
-%python_clone %{buildroot}%{_bindir}/espefuse.py
+%python_clone -a %{buildroot}%{_bindir}/espefuse.py
+%python_clone -a %{buildroot}%{_bindir}/espsecure.py
+%python_clone -a %{buildroot}%{_bindir}/esptool.py
 %python_expand sed -i '/^#!/d' %{buildroot}%{$python_sitelib}/*.py
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
@@ -68,15 +69,25 @@
 %pytest test/test_imagegen.py
 %pytest test/test_espsecure.py
 
+%post
+%python_install_alternative espefuse.py
+%python_install_alternative espsecure.py
+%python_install_alternative esptool.py
+
+%postun
+%python_uninstall_alternative espefuse.py
+%python_uninstall_alternative espsecure.py
+%python_uninstall_alternative esptool.py
+
 %files %{python_files}
 %license LICENSE
 %doc README.md flasher_stub/
 %{_bindir}/esptool.py-%{python_bin_suffix}
 %{_bindir}/espsecure.py-%{python_bin_suffix}
 %{_bindir}/espefuse.py-%{python_bin_suffix}
-%python3_only %{_bindir}/esptool.py
-%python3_only %{_bindir}/espsecure.py
-%python3_only %{_bindir}/espefuse.py
+%python_alternative %{_bindir}/esptool.py
+%python_alternative %{_bindir}/espsecure.py
+%python_alternative %{_bindir}/espefuse.py
 %{python_sitelib}/*
 
 %changelog


Reply via email to