Hello community,
here is the log from the commit of package python-CommonMark for
openSUSE:Factory checked in at 2020-05-08 23:02:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old)
and /work/SRC/openSUSE:Factory/.python-CommonMark.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-CommonMark"
Fri May 8 23:02:40 2020 rev:11 rq:800654 version:0.9.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes
2020-03-27 00:25:32.704264331 +0100
+++
/work/SRC/openSUSE:Factory/.python-CommonMark.new.2738/python-CommonMark.changes
2020-05-08 23:02:44.857543075 +0200
@@ -1,0 +2,5 @@
+Wed May 6 09:55:17 UTC 2020 - Matej Cepl <[email protected]>
+
+- Don't use %python3_only command, but properly use alternatives.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-CommonMark.spec ++++++
--- /var/tmp/diff_new_pack.LI7UYW/_old 2020-05-08 23:02:45.705544808 +0200
+++ /var/tmp/diff_new_pack.LI7UYW/_new 2020-05-08 23:02:45.709544815 +0200
@@ -30,6 +30,8 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Provides: python-commonmark = %{version}
Obsoletes: python-commonmark < %{version}
BuildArch: noarch
@@ -60,6 +62,7 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/cmark
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -68,10 +71,16 @@
# On python2 we error out on unicode issues
PYTHONPATH=%{buildroot}%{python3_sitelib} python3 setup.py test
+%post
+%python_install_alternative cmark
+
+%postun
+%python_uninstall_alternative cmark
+
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
-%python3_only %{_bindir}/cmark
+%python_alternative %{_bindir}/cmark
%changelog