From f4c4ee0d6454c6d9dfc2ad7a5c85a4613495dd4607fcfd548d3d1024b41d7862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 9 Sep 2019 10:12:08 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sphinx?expand=0&rev=2 --- python-pytest-sphinx.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-pytest-sphinx.spec b/python-pytest-sphinx.spec index 8e9923b..e1859e5 100644 --- a/python-pytest-sphinx.spec +++ b/python-pytest-sphinx.spec @@ -29,12 +29,14 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 3.1.1 -Requires: python-enum34 BuildArch: noarch +%ifpython2 +Requires: python-enum34 +%endif # SECTION test requirements BuildRequires: %{python_module pytest >= 3.1.1} -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-runner} BuildRequires: python2-enum34 # /SECTION %python_subpackages