From 0298703d0ee2f95538e7acc558369de0b12a7045b6e5b2020b605183039733f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 12 Aug 2019 14:27:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=55 --- python-docutils.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/python-docutils.spec b/python-docutils.spec index ef0516d..b13be9f 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -34,12 +34,6 @@ Group: Development/Languages/Python URL: https://pypi.python.org/pypi/docutils/ Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz Source99: python-docutils-rpmlintrc -%if %{with test} -BuildRequires: %{python_module Pillow} -BuildRequires: %{python_module Pygments} -BuildRequires: %{python_module roman} -%endif -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes @@ -51,6 +45,11 @@ Recommends: python-Pillow Recommends: python-Pygments Recommends: python-roman BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module Pygments} +BuildRequires: %{python_module roman} +%endif %ifpython3 Provides: docutils = %{version} Obsoletes: docutils < %{version} @@ -83,7 +82,7 @@ mv test3 test%{python3_bin_suffix} %install %if !%{with test} %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} # To avoid conflicts with the rst2html4 package mv %{buildroot}%{_bindir}/rst2html4 %{buildroot}%{_bindir}/rst2html4-docutils