Hello community,

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

Package is "python-macholib"

Tue May 26 17:23:23 2020 rev:5 rq:808683 version:1.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-macholib/python-macholib.changes  
2020-04-01 19:20:00.947576399 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-macholib.new.2738/python-macholib.changes    
    2020-05-26 17:23:24.600502332 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:39 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-macholib.spec ++++++
--- /var/tmp/diff_new_pack.7N5BEs/_old  2020-05-26 17:23:25.316503871 +0200
+++ /var/tmp/diff_new_pack.7N5BEs/_new  2020-05-26 17:23:25.324503889 +0200
@@ -30,6 +30,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-altgraph >= 0.15
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module altgraph >= 0.15}
@@ -58,6 +60,9 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/macho_dump
+%python_clone -a %{buildroot}%{_bindir}/macho_standalone
+%python_clone -a %{buildroot}%{_bindir}/macho_find
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -65,12 +70,22 @@
 rm macholib_tests/test_{command_line,dyld}.py
 %pytest
 
+%post
+%python_install_alternative macho_dump
+%python_install_alternative macho_standalone
+%python_install_alternative macho_find
+
+%postun
+%python_uninstall_alternative macho_dump
+%python_uninstall_alternative macho_standalone
+%python_uninstall_alternative macho_find
+
 %files %{python_files}
 %doc README.rst doc/*.rst
 %license doc/license.rst
-%python3_only %{_bindir}/macho_find
-%python3_only %{_bindir}/macho_standalone
-%python3_only %{_bindir}/macho_dump
+%python_alternative %{_bindir}/macho_find
+%python_alternative %{_bindir}/macho_standalone
+%python_alternative %{_bindir}/macho_dump
 %{python_sitelib}/*
 
 %changelog


Reply via email to