From 8316f0ac998cc32a680a1d0b7beac622d2305ba8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 13 Nov 2020 17:05:12 +0100 Subject: [PATCH] Fix winexe and glusterfs on rhel --- samba.spec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/samba.spec b/samba.spec index 9a3160a..3bd7e49 100644 --- a/samba.spec +++ b/samba.spec @@ -29,7 +29,18 @@ %bcond_without libwbclient # Build with winexe by default +%if 0%{?rhel} + +%ifarch x86_64 %bcond_without winexe +%else +%bcond_with winexe +#endifarch +%endif + +%else +%bcond_without winexe +%endif # Build vfs_ceph module by default on 64bit Fedora %if 0%{?fedora} @@ -56,8 +67,15 @@ #endifarch %endif +#else rhel +%else +# Enable on rhel x86_64 +%ifarch x86_64 +%bcond_without vfs_glusterfs %else %bcond_with vfs_glusterfs +#endifarch +%endif #endif fedora %endif