From 6529d75ef6ba658d47e04df9a05205780dd169ad784fe5141a096318f811be41 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Dec 2020 06:22:45 +0000 Subject: [PATCH] Accepting request 855634 from home:bnavigator:branches:devel:languages:python - Fix condition around BuildRequirement OBS-URL: https://build.opensuse.org/request/show/855634 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-genty?expand=0&rev=9 --- python-genty.changes | 5 +++++ python-genty.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-genty.changes b/python-genty.changes index e4d3726..43ff0b1 100644 --- a/python-genty.changes +++ b/python-genty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 14 00:46:41 UTC 2020 - Benjamin Greiner + +- Fix condition around BuildRequirement + ------------------------------------------------------------------- Sun Dec 13 19:33:37 UTC 2020 - Matej Cepl diff --git a/python-genty.spec b/python-genty.spec index 472d6f6..4e7502d 100644 --- a/python-genty.spec +++ b/python-genty.spec @@ -31,8 +31,8 @@ Patch0: remove_mock.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -%ifpython2 -BuildRequires: %{python_module mock} +%if 0%{?suse_version} <= 1500 +BuildRequires: python-mock %endif BuildRequires: fdupes BuildRequires: python-rpm-macros