diff --git a/python-dmidecode.spec b/python-dmidecode.spec index de21d72..571282e 100644 --- a/python-dmidecode.spec +++ b/python-dmidecode.spec @@ -36,7 +36,7 @@ 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%{?sle_version} >= 150400 +%if 0%{?is_opensuse} || 0%{?sle_version} >= 150400 BuildRequires: %{python_module libxml2} %else BuildRequires: %{oldpython}-libxml2-python