From 6d0921eb4d06d2f9d8120766e448790a254291af12e5874346bd9ef37a68d5a6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 24 Feb 2022 23:30:31 +0000 Subject: [PATCH] Fix %if condition OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dmidecode?expand=0&rev=8 --- python-dmidecode.spec | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/python-dmidecode.spec b/python-dmidecode.spec index 86116fd..25788f3 100644 --- a/python-dmidecode.spec +++ b/python-dmidecode.spec @@ -36,15 +36,11 @@ Patch2: detect-lib-with-py3.patch # use sys.version_info instead of sys.version Patch3: 31-version_info-v-version.patch BuildRequires: %{python_module devel} -%if 0%{?is_opensuse} -BuildRequires: %{python_module libxml2} -%else -%if 0%{?sle_version} >= 150400 -BuildRequires: %{python_module libxml2} -%else +%if 0%{?sle_version} && 0%{?sle_version} < 150400 BuildRequires: %{oldpython}-libxml2-python BuildRequires: %{oldpython}3-libxml2-python -%endif +%else +BuildRequires: %{python_module libxml2} %endif BuildRequires: fdupes BuildRequires: libxml2-devel