Hello community, here is the log from the commit of package python-json5 for openSUSE:Factory checked in at 2020-05-26 17:48:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-json5 (Old) and /work/SRC/openSUSE:Factory/.python-json5.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-json5" Tue May 26 17:48:56 2020 rev:3 rq:808779 version:0.9.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-json5/python-json5.changes 2020-04-16 23:05:43.827807090 +0200 +++ /work/SRC/openSUSE:Factory/.python-json5.new.2738/python-json5.changes 2020-05-26 17:48:58.319834737 +0200 @@ -1,0 +2,5 @@ +Mon May 25 10:59:34 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-json5.spec ++++++ --- /var/tmp/diff_new_pack.ssGVKR/_old 2020-05-26 17:49:00.227838919 +0200 +++ /var/tmp/diff_new_pack.ssGVKR/_new 2020-05-26 17:49:00.227838919 +0200 @@ -30,6 +30,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros 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}/pyjson5 %python_expand rm -rf %{buildroot}%{$python_sitelib}/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative pyjson5 + +%postun +%python_uninstall_alternative pyjson5 + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/pyjson5 +%python_alternative %{_bindir}/pyjson5 %{python_sitelib}/* %changelog
