From 19c8e6ac64e6272c1b0f1b8d86c2219160ae903738262a193708d8c7523c1bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Sep 2019 07:42:21 +0000 Subject: [PATCH] Accepting request 730819 from home:jayvdb:py3only - Skip the tests for the flavors not being built OBS-URL: https://build.opensuse.org/request/show/730819 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=56 --- python-docutils.changes | 5 +++++ python-docutils.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-docutils.changes b/python-docutils.changes index 1e6b33f..b6be5e1 100644 --- a/python-docutils.changes +++ b/python-docutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 14 01:50:36 UTC 2019 - John Vandenberg + +- Skip the tests for the flavors not being built + ------------------------------------------------------------------- Fri Aug 9 09:53:07 UTC 2019 - Marketa Calabkova diff --git a/python-docutils.spec b/python-docutils.spec index b13be9f..77bab34 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -76,8 +76,12 @@ sed -i -e "1d" "docutils/writers/xetex/__init__.py" "docutils/writers/_html_base %python_build # test3 is generated from test during build +%if 0%{?have_python2} && ! 0%{?skip_python2} mv test test%{python2_bin_suffix} +%endif +%if 0%{?have_python3} && ! 0%{?skip_python3} mv test3 test%{python3_bin_suffix} +%endif %install %if !%{with test}