Hello community,

here is the log from the commit of package python-tld for openSUSE:Leap:15.2 
checked in at 2020-05-24 18:08:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-tld (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-tld.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tld"

Sun May 24 18:08:58 2020 rev:21 rq:808449 version:0.12.1

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-tld/python-tld.changes  2020-05-14 
16:58:18.082763032 +0200
+++ /work/SRC/openSUSE:Leap:15.2/.python-tld.new.2738/python-tld.changes        
2020-05-24 18:08:58.990147253 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:31 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-tld.spec ++++++
--- /var/tmp/diff_new_pack.Qx4gLF/_old  2020-05-24 18:08:59.450148248 +0200
+++ /var/tmp/diff_new_pack.Qx4gLF/_new  2020-05-24 18:08:59.454148256 +0200
@@ -33,6 +33,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
 Requires:       python-six >= 1.9
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Faker}
@@ -57,15 +59,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/update-tld-names
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative update-tld-names
+
+%postun
+%python_uninstall_alternative update-tld-names
+
 %files %{python_files}
 %doc README.rst CHANGELOG.rst
 %license LICENSE_GPL2.0.txt LICENSE_LGPL_2.1.txt
-%python3_only %{_bindir}/update-tld-names
+%python_alternative %{_bindir}/update-tld-names
 %{python_sitelib}/*
 
 %changelog


Reply via email to