Hello community, here is the log from the commit of package python-ethtool for openSUSE:Factory checked in at 2020-05-28 09:18:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-ethtool (Old) and /work/SRC/openSUSE:Factory/.python-ethtool.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ethtool" Thu May 28 09:18:39 2020 rev:6 rq:809511 version:0.14 Changes: -------- --- /work/SRC/openSUSE:Factory/python-ethtool/python-ethtool.changes 2019-03-01 16:49:54.797742754 +0100 +++ /work/SRC/openSUSE:Factory/.python-ethtool.new.3606/python-ethtool.changes 2020-05-28 09:18:39.677136500 +0200 @@ -1,0 +2,5 @@ +Tue May 26 06:34:08 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-ethtool.spec ++++++ --- /var/tmp/diff_new_pack.jwtVYp/_old 2020-05-28 09:18:40.169137401 +0200 +++ /var/tmp/diff_new_pack.jwtVYp/_new 2020-05-28 09:18:40.173137408 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python +# spec file for package python-ethtool # -# 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 @@ -34,6 +34,8 @@ BuildRequires: net-tools-deprecated BuildRequires: pkgconfig BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -51,19 +53,33 @@ %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} - mkdir -p %{buildroot}%{_sbindir} mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool +%python_clone -a %{buildroot}%{_sbindir}/pifconfig +%python_clone -a %{buildroot}%{_sbindir}/pethtool %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v +%post +# %%python_install_alternative for %{_sbindir} binaries +%{python_expand \ + %{_sbindir}/update-alternatives --quiet --install %{_sbindir}/pifconfig pifconfig \ + %{_sbindir}/pifconfig-%{$python_version} %{$python_version_nodots} + %{_sbindir}/update-alternatives --quiet --install %{_sbindir}/pethtool pethtool \ + %{_sbindir}/pethtool-%{$python_version} %{$python_version_nodots} +} + +%postun +%python_uninstall_alternative pifconfig +%python_uninstall_alternative pethtool + %files %{python_files} %license COPYING %doc README.rst CHANGES.rst %{python_sitearch}/ -%python3_only %{_sbindir}/pethtool -%python3_only %{_sbindir}/pifconfig +%python_alternative %{_sbindir}/pethtool +%python_alternative %{_sbindir}/pifconfig %changelog
