From 2172ebe426952bcda3f7a5a47a717fe44a570694f67cc5d90ce2a8e4c4eb1182 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Dec 2020 06:22:01 +0000 Subject: [PATCH] Accepting request 855635 from home:bnavigator:branches:devel:languages:python - Fix condition around BuildRequirement OBS-URL: https://build.opensuse.org/request/show/855635 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flaky?expand=0&rev=17 --- python-flaky.changes | 5 +++++ python-flaky.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-flaky.changes b/python-flaky.changes index 52a9a36..c12a077 100644 --- a/python-flaky.changes +++ b/python-flaky.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 14 00:48:47 UTC 2020 - Benjamin Greiner + +- Fix condition around BuildRequirement + ------------------------------------------------------------------- Sun Dec 13 20:27:15 UTC 2020 - Matej Cepl diff --git a/python-flaky.spec b/python-flaky.spec index ab0c602..6106851 100644 --- a/python-flaky.spec +++ b/python-flaky.spec @@ -45,8 +45,8 @@ BuildArch: noarch BuildRequires: %{python_module flaky >= %{version}} BuildRequires: %{python_module genty} BuildRequires: %{python_module pytest} -%if "%{python_flavor}" == "python2" -BuildRequires: %{python_module mock} +%if 0%{?suse_version} <= 1500 +BuildRequires: python-mock %endif %endif %python_subpackages