Hello community, here is the log from the commit of package python-pyelftools for openSUSE:Leap:15.2 checked in at 2020-05-28 20:09:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-pyelftools (Old) and /work/SRC/openSUSE:Leap:15.2/.python-pyelftools.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyelftools" Thu May 28 20:09:42 2020 rev:5 rq:809199 version:0.26 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-pyelftools/python-pyelftools.changes 2020-03-21 16:50:25.549776042 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-pyelftools.new.3606/python-pyelftools.changes 2020-05-28 20:09:45.634928351 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:24 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyelftools.spec ++++++ --- /var/tmp/diff_new_pack.cDkSuy/_old 2020-05-28 20:09:46.158929911 +0200 +++ /var/tmp/diff_new_pack.cDkSuy/_new 2020-05-28 20:09:46.158929911 +0200 @@ -28,6 +28,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -45,6 +47,7 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/readelf.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,10 +57,16 @@ # https://github.com/eliben/pyelftools/wiki/Hacking-guide#tests %python_exec test/run_readelf_tests.py || : +%post +%python_install_alternative readelf.py + +%postun +%python_uninstall_alternative readelf.py + %files %{python_files} %license LICENSE %doc CHANGES -%python3_only %{_bindir}/readelf.py +%python_alternative %{_bindir}/readelf.py %{python_sitelib}/* %changelog
