Hello community, here is the log from the commit of package python-docutils for openSUSE:Factory checked in at 2017-06-13 16:07:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-docutils (Old) and /work/SRC/openSUSE:Factory/.python-docutils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-docutils" Tue Jun 13 16:07:04 2017 rev:22 rq:501919 version:0.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-docutils/python-docutils.changes 2017-05-16 14:28:03.903194026 +0200 +++ /work/SRC/openSUSE:Factory/.python-docutils.new/python-docutils.changes 2017-06-13 16:07:07.135018069 +0200 @@ -1,0 +2,7 @@ +Tue Jun 6 13:31:03 UTC 2017 - [email protected] + +- only emit rst2html5 alternatives for python 3 +- switch the "docutils" provides to the python 3 package (all the comands live there) + (this fixes bsc#1039394) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-docutils.spec ++++++ --- /var/tmp/diff_new_pack.06trhk/_old 2017-06-13 16:07:08.790784724 +0200 +++ /var/tmp/diff_new_pack.06trhk/_new 2017-06-13 16:07:08.794784161 +0200 @@ -32,13 +32,13 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-xml -%ifpython2 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%ifpython3 Provides: docutils = %{version} Obsoletes: docutils < %{version} %endif -Requires(post): update-alternatives -Requires(preun): update-alternatives -BuildArch: noarch %python_subpackages %description @@ -47,7 +47,7 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax. %prep -%setup -n docutils-%{version} +%setup -q -n docutils-%{version} # Remove useless ".py" ending from executables: for i in tools/rst*; do mv "$i" "${i/.py}"; done sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py @@ -68,13 +68,17 @@ mv %{buildroot}%{_bindir}/rst2html5 %{buildroot}%{_bindir}/rst2html5-docutils ln -s -f %{_sysconfdir}/alternatives/rst2html5 %{buildroot}%{_bindir}/rst2html5 +%ifpython3 %post update-alternatives --install %{_bindir}/rst2html5 rst2html5 %{_bindir}/rst2html5-docutils 15 +%endif -%preun +%ifpython3 +%postun if [ ! -f %{_bindir}/rst2html5-docutils ] ; then update-alternatives --remove rst2html5 %{_bindir}/rst2html5-docutils fi +%endif %check %python_exec -c 'import subprocess; import sys; sys.exit(subprocess.call([sys.executable, "test/alltests.py" if sys.version_info[0] == 2 else "test3/alltests.py"]))'
