Hello community, here is the log from the commit of package python-pyOCD for openSUSE:Factory checked in at 2020-05-26 17:18:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyOCD (Old) and /work/SRC/openSUSE:Factory/.python-pyOCD.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyOCD" Tue May 26 17:18:36 2020 rev:5 rq:807685 version:0.22.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyOCD/python-pyOCD.changes 2019-09-11 10:37:31.859258985 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyOCD.new.2738/python-pyOCD.changes 2020-05-26 17:19:03.727941499 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:37 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyOCD.spec ++++++ --- /var/tmp/diff_new_pack.Norurh/_old 2020-05-26 17:19:04.775943752 +0200 +++ /var/tmp/diff_new_pack.Norurh/_new 2020-05-26 17:19:04.779943760 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyOCD # -# 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 @@ -31,6 +31,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-usb +Requires(post): update-alternatives +Requires(postun): update-alternatives Provides: python-pyocd = %{version} Obsoletes: python-pyocd < %{version} BuildArch: noarch @@ -47,21 +49,29 @@ %install %python_install -%python_clone %{buildroot}%{_bindir}/pyocd -%python_clone %{buildroot}%{_bindir}/pyocd-flashtool -%python_clone %{buildroot}%{_bindir}/pyocd-gdbserver -%python_clone %{buildroot}%{_bindir}/pyocd-tool +%python_clone -a %{buildroot}%{_bindir}/pyocd +%python_clone -a %{buildroot}%{_bindir}/pyocd-flashtool +%python_clone -a %{buildroot}%{_bindir}/pyocd-gdbserver +%python_clone -a %{buildroot}%{_bindir}/pyocd-tool %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative pyocd +%python_install_alternative pyocd-flashtool +%python_install_alternative pyocd-gdbserver +%python_install_alternative pyocd-tool + +%postun +%python_uninstall_alternative pyocd +%python_uninstall_alternative pyocd-flashtool +%python_uninstall_alternative pyocd-gdbserver +%python_uninstall_alternative pyocd-tool + %files %{python_files} -%{_bindir}/pyocd-flashtool-%{python_bin_suffix} -%{_bindir}/pyocd-gdbserver-%{python_bin_suffix} -%{_bindir}/pyocd-tool-%{python_bin_suffix} -%{_bindir}/pyocd-%{python_bin_suffix} -%python3_only %{_bindir}/pyocd -%python3_only %{_bindir}/pyocd-flashtool -%python3_only %{_bindir}/pyocd-gdbserver -%python3_only %{_bindir}/pyocd-tool +%python_alternative %{_bindir}/pyocd +%python_alternative %{_bindir}/pyocd-flashtool +%python_alternative %{_bindir}/pyocd-gdbserver +%python_alternative %{_bindir}/pyocd-tool %{python_sitelib}/* %changelog
