Hello community, here is the log from the commit of package python-jsondiff for openSUSE:Factory checked in at 2020-05-26 17:48:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jsondiff (Old) and /work/SRC/openSUSE:Factory/.python-jsondiff.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jsondiff" Tue May 26 17:48:51 2020 rev:5 rq:808778 version:1.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jsondiff/python-jsondiff.changes 2019-10-08 19:57:13.500324224 +0200 +++ /work/SRC/openSUSE:Factory/.python-jsondiff.new.2738/python-jsondiff.changes 2020-05-26 17:48:53.647824498 +0200 @@ -1,0 +2,5 @@ +Mon May 25 10:59:35 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jsondiff.spec ++++++ --- /var/tmp/diff_new_pack.BiCipF/_old 2020-05-26 17:48:54.815827058 +0200 +++ /var/tmp/diff_new_pack.BiCipF/_new 2020-05-26 17:48:54.819827067 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-jsondiff # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -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 @@ -44,16 +46,26 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/jsondiff +%python_clone -a %{buildroot}%{_bindir}/jdiff %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand nosetests-%{$python_bin_suffix} +%post +%python_install_alternative jsondiff +%python_install_alternative jdiff + +%postun +%python_uninstall_alternative jsondiff +%python_uninstall_alternative jdiff + %files %{python_files} %license LICENSE %doc README.rst %{python_sitelib}/* -%python3_only %{_bindir}/jdiff -%python3_only %{_bindir}/jsondiff +%python_alternative %{_bindir}/jdiff +%python_alternative %{_bindir}/jsondiff %changelog