diff --git a/samba.spec b/samba.spec index f6ded1b..8004d93 100644 --- a/samba.spec +++ b/samba.spec @@ -392,19 +392,28 @@ Recommends: logrotate Provides: samba4-common = %{samba_depver} Obsoletes: samba4-common < %{samba_depver} +%description common +samba-common provides files necessary for both the server and client +packages of Samba. + +### COMMON-LIBS +%package common-libs +Summary: Libraries used by both Samba servers and clients +Requires(pre): samba-common = %{samba_depver} +Requires: samba-common = %{samba_depver} +Requires: %{name}-client-libs = %{samba_depver} +%if %{with libwbclient} +Requires: libwbclient = %{samba_depver} +%endif + +Provides: bundled(libreplace) + %if %{without dc} && %{without testsuite} Obsoletes: samba-dc < %{samba_depver} 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} @@ -415,24 +424,13 @@ Obsoletes: ctdb-tests-debuginfo < %{samba_depver} # endif with clustering %endif -Provides: bundled(libreplace) - -%description common -samba-common provides files necessary for both the server and client -packages of Samba. - -### COMMON-LIBS -%package common-libs -Summary: Libraries used by both Samba servers and clients -Requires(pre): samba-common = %{samba_depver} -Requires: samba-common = %{samba_depver} -Requires: %{name}-client-libs = %{samba_depver} -%if %{with libwbclient} -Requires: libwbclient = %{samba_depver} +# 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 -Provides: bundled(libreplace) - %description common-libs The samba-common-libs package contains internal libraries needed by the SMB/CIFS clients.