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