From a0d21819ca5b29c3ae397a1ee0aedcbbbd394f3b51e9eeb19b7f0f65731ea992 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 6 Aug 2022 15:05:13 +0000 Subject: [PATCH] Make SPEC more SLE-15 compatible OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-osc-tiny?expand=0&rev=54 --- python-osc-tiny.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-osc-tiny.spec b/python-osc-tiny.spec index d764955..5d4903a 100644 --- a/python-osc-tiny.spec +++ b/python-osc-tiny.spec @@ -45,7 +45,11 @@ Requires: python-responses Suggests: openssh BuildArch: noarch # Using 'if' instead of 'with' because the latter requires rpm >= 4.14 +%if 0%{?suse_version} >= 1550 BuildRequires: %{python_module cached-property if %python-base < 3.8} +%else +BuildRequires: %{python_module cached-property} +%endif Requires: (python-cached-property if python-base < 3.8) %python_subpackages