From 7db18e22867cb29114fb862d4895b281b683c9ed55e2696ad2dcc051c926596f Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 8 Jun 2017 12:03:09 +0000 Subject: [PATCH] - switch the "docutils" provides to the python 3 package (all the comands live there) (this fixes bsc#1039394) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=43 --- python-docutils.changes | 3 ++- python-docutils.spec | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/python-docutils.changes b/python-docutils.changes index e209e97..95514d7 100644 --- a/python-docutils.changes +++ b/python-docutils.changes @@ -2,7 +2,8 @@ Tue Jun 6 13:31:03 UTC 2017 - jmatejek@suse.com - only emit rst2html5 alternatives for python 3 -- switch the "docutils" provides to the python 3 package (all the comands live ther) +- switch the "docutils" provides to the python 3 package (all the comands live there) + (this fixes bsc#1039394) ------------------------------------------------------------------- Mon May 1 19:33:19 UTC 2017 - toddrme2178@gmail.com diff --git a/python-docutils.spec b/python-docutils.spec index 62bb28d..7398143 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -68,13 +68,13 @@ sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base mv %{buildroot}%{_bindir}/rst2html5 %{buildroot}%{_bindir}/rst2html5-docutils ln -s -f %{_sysconfdir}/alternatives/rst2html5 %{buildroot}%{_bindir}/rst2html5 -%post %ifpython3 +%post update-alternatives --install %{_bindir}/rst2html5 rst2html5 %{_bindir}/rst2html5-docutils 15 %endif -%postun %ifpython3 +%postun if [ ! -f %{_bindir}/rst2html5-docutils ] ; then update-alternatives --remove rst2html5 %{_bindir}/rst2html5-docutils fi