From f08374c6d458c1564f30c54d2a3589466797191c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 May 2021 14:49:04 +0200 Subject: [PATCH] Fix updating if vfs_glusterfs or ctdb-tests pacakges are installed --- samba.spec | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/samba.spec b/samba.spec index 75a14eb..7de116b 100644 --- a/samba.spec +++ b/samba.spec @@ -396,6 +396,22 @@ Obsoletes: samba-dc-libs < %{samba_depver} Obsoletes: samba-dc-bind-dlz < %{samba_depver} %endif +# If only build glusterfs for RHGS and Fedora, so obsolete it on other version +# of the distro +%if %{without vfs_glusterfs} +Obsoletes: samba-vfs-glusterfs < %{samba_depver} +# endif without vfs_glusterfs +%endif + +# ctdb-tests package has been dropped if we do not build the testsuite +%if %{with clustering} +%if %{without testsuite} +Obsoletes: ctdb-tests< %{samba_depver} +# endif without testsuite +%endif +# endif with clustering +%endif + Provides: bundled(libreplace) %description common