From 6cddc6448b7d74a4d9af0d95ce4a37febf4b5ea4 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 4 Feb 2021 17:08:03 +0100 Subject: [PATCH] Protect 'Require' of libwbclient --- samba.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samba.spec b/samba.spec index e9ae425..06571f3 100644 --- a/samba.spec +++ b/samba.spec @@ -434,8 +434,10 @@ Requires: %{name}-dc-provision = %{samba_depver} Requires: %{name}-dc-libs = %{samba_depver} Requires: %{name}-winbind = %{samba_depver} +%if %{with libwbclient} Requires(post): libwbclient = %{samba_depver} Requires: libwbclient = %{samba_depver} +%endif # samba-tool needs tdbbackup Requires: tdb-tools @@ -744,8 +746,10 @@ Requires: %{name}-client-libs = %{samba_depver} Requires: %{name}-libs = %{samba_depver} Requires: %{name}-winbind-modules = %{samba_depver} +%if %{with libwbclient} Requires(post): libwbclient = %{samba_depver} Requires: libwbclient = %{samba_depver} +%endif Provides: samba4-winbind = %{samba_depver} Obsoletes: samba4-winbind < %{samba_depver}