diff --git a/open-vm-tools.spec b/open-vm-tools.spec index a2430bd..4e6fd5a 100644 --- a/open-vm-tools.spec +++ b/open-vm-tools.spec @@ -29,12 +29,15 @@ %endif # vgauth is enabled for openSUSE Factory, Leap 42.1 and SLES12SP1 (which include xml-security-c and xerces-c) -# but not openSUSE13.2 or below (which do not provide xml-security-c and xerces-c) -%if 0%{?suse_version} >= 1315 && 0%{?suse_version} != 1320 +%if 0%{?is_opensuse} && 0%{?suse_version} >= 1315 && 0%{?suse_version} != 1320 +%bcond_without vgauth +%else +%if 0%{?sle_version} >= 0120100 %bcond_without vgauth %else %bcond_with vgauth %endif +%endif # exclude AMD PCnet32 LANCE pci.id from Supplements list [bnc#397554] %define __find_supplements sh -c '/usr/lib/rpm/find-supplements %{name} | grep -v pci:v00001022d00002000'