Hello community, here is the log from the commit of package python-kasa for openSUSE:Factory checked in at 2020-05-26 17:23:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-kasa (Old) and /work/SRC/openSUSE:Factory/.python-kasa.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-kasa" Tue May 26 17:23:41 2020 rev:2 rq:808691 version:0.0~git1580219900.15b0c8c Changes: -------- --- /work/SRC/openSUSE:Factory/python-kasa/python-kasa.changes 2020-03-06 21:28:30.729594999 +0100 +++ /work/SRC/openSUSE:Factory/.python-kasa.new.2738/python-kasa.changes 2020-05-26 17:23:41.956539645 +0200 @@ -1,0 +2,5 @@ +Mon May 25 06:50:29 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-kasa.spec ++++++ --- /var/tmp/diff_new_pack.C1E85R/_old 2020-05-26 17:23:42.548540917 +0200 +++ /var/tmp/diff_new_pack.C1E85R/_new 2020-05-26 17:23:42.548540917 +0200 @@ -37,6 +37,8 @@ Requires: python-click >= 7.0 Requires: python-pytest-asyncio Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -52,16 +54,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/kasa %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # https://github.com/python-kasa/python-kasa/issues/27 #%%pytest +%post +%python_install_alternative kasa + +%postun +%python_uninstall_alternative kasa + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/kasa +%python_alternative %{_bindir}/kasa %dir %{python_sitelib}/kasa %{python_sitelib}/kasa/* %{python_sitelib}/*.egg-info*
