Hello community,
here is the log from the commit of package python-uncompyle6 for
openSUSE:Factory checked in at 2020-05-19 14:48:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-uncompyle6 (Old)
and /work/SRC/openSUSE:Factory/.python-uncompyle6.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-uncompyle6"
Tue May 19 14:48:36 2020 rev:7 rq:806964 version:3.6.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-uncompyle6/python-uncompyle6.changes
2020-04-18 00:33:22.550418259 +0200
+++
/work/SRC/openSUSE:Factory/.python-uncompyle6.new.2738/python-uncompyle6.changes
2020-05-19 14:48:37.608089051 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:38 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-uncompyle6.spec ++++++
--- /var/tmp/diff_new_pack.nwU9Mf/_old 2020-05-19 14:48:38.308090603 +0200
+++ /var/tmp/diff_new_pack.nwU9Mf/_new 2020-05-19 14:48:38.308090603 +0200
@@ -32,6 +32,8 @@
Requires: python-setuptools
Requires: python-spark_parser >= 1.8.7
Requires: python-xdis >= 4.2.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hypothesis >= 2.0.0}
@@ -53,16 +55,26 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/pydisassemble
+%python_clone -a %{buildroot}%{_bindir}/uncompyle6
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest pytest
+%post
+%python_install_alternative pydisassemble
+%python_install_alternative uncompyle6
+
+%postun
+%python_uninstall_alternative pydisassemble
+%python_uninstall_alternative uncompyle6
+
%files %{python_files}
%license COPYING
%doc ChangeLog README README.rst
-%python3_only %{_bindir}/uncompyle6
-%python3_only %{_bindir}/pydisassemble
+%python_alternative %{_bindir}/uncompyle6
+%python_alternative %{_bindir}/pydisassemble
%{python_sitelib}/*
%changelog