Hello community,

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

Package is "python-dephell"

Thu May 28 09:18:07 2020 rev:12 rq:809421 version:0.8.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-dephell/python-dephell.changes    
2020-04-02 17:45:30.717540700 +0200
+++ /work/SRC/openSUSE:Factory/.python-dephell.new.3606/python-dephell.changes  
2020-05-28 09:18:09.209080694 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:37 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-dephell.spec ++++++
--- /var/tmp/diff_new_pack.6NEpxO/_old  2020-05-28 09:18:10.145082408 +0200
+++ /var/tmp/diff_new_pack.6NEpxO/_new  2020-05-28 09:18:10.145082408 +0200
@@ -61,6 +61,7 @@
 Requires:       python-dephell-venvs >= 0.1.16
 Requires:       python-dephell-versioning
 Requires:       python-dephell_changelogs
+Requires:       (python-dephell-rpm-macros if python-rpm-macros)
 # Yeah, html5lib is required by dephell, and no, autodiscovery won’t find it.
 # rpmlint is stupid
 Requires:       python-docker
@@ -77,7 +78,8 @@
 Requires:       python-tabulate
 Requires:       python-tomlkit
 Requires:       python-yaspin
-Requires:       (python-dephell-rpm-macros if python-rpm-macros)
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     git-core
 Recommends:     python-aiofiles
 Recommends:     python-colorama
@@ -159,6 +161,7 @@
 %install
 %if ! %{with test}
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/dephell
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 # Install macros.lua for rpm to have centralized place to
 # manage dephell_genspec macro
@@ -173,10 +176,16 @@
 %endif
 
 %if ! %{with test}
+%post
+%python_install_alternative dephell
+
+%postun
+%python_uninstall_alternative dephell
+
 %files %{python_files}
 %doc README.md README.rst
 %license LICENSE
-%python3_only %{_bindir}/dephell
+%python_alternative %{_bindir}/dephell
 %{python_sitelib}/*
 
 %files rpm-macros


Reply via email to