Hello community,

here is the log from the commit of package python-pyelftools for 
openSUSE:Factory checked in at 2020-05-26 17:17:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyelftools (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyelftools.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyelftools"

Tue May 26 17:17:20 2020 rev:4 rq:807659 version:0.26

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyelftools/python-pyelftools.changes      
2020-03-20 23:59:20.797019983 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pyelftools.new.2738/python-pyelftools.changes
    2020-05-26 17:18:13.231832941 +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.9JTnW7/_old  2020-05-26 17:18:14.019834634 +0200
+++ /var/tmp/diff_new_pack.9JTnW7/_new  2020-05-26 17:18:14.023834643 +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


Reply via email to