From 57cc66edf6a16025fb4d607afbcc5e40e57893c3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 12 Mar 2015 19:38:13 +0100 Subject: [PATCH] Split the samba-common package to fix multiarch issues --- samba.spec | 70 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 24 deletions(-) diff --git a/samba.spec b/samba.spec index 608ee5c..7b6eb2e 100644 --- a/samba.spec +++ b/samba.spec @@ -239,6 +239,8 @@ SMB/CIFS clients. %package common Summary: Files used by both Samba servers and clients Group: Applications/System +BuildArch: noarch + Requires: %{name}-client-libs = %{samba_depver} %if %with_libwbclient Requires: libwbclient = %{samba_depver} @@ -248,15 +250,30 @@ Requires(post): systemd Provides: samba4-common = %{samba_depver} Obsoletes: samba4-common < %{samba_depver} -# This is for upgrading from F17 to F18 -Obsoletes: samba-doc -Obsoletes: samba-domainjoin-gui -Obsoletes: samba-swat - %description common -samba4-common provides files necessary for both the server and client +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 +Group: Applications/System +Requires: samba-common = %{samba_depver} + +%description common-libs +The samba-common-libs package contains internal libraries needed by the +SMB/CIFS clients. + +### COMMON-TOOLS +%package common-tools +Summary: Tools for Samba servers and clients +Group: Applications/System +Requires: samba-libs = %{samba_depver} + +%description common-tools +The samba-common-tools package contains tools for Samba servers and +SMB/CIFS clients. + ### DC %package dc Summary: Samba AD Domain Controller @@ -275,7 +292,7 @@ The samba-dc package provides AD Domain Controller functionality %package dc-libs Summary: Samba AD Domain Controller Libraries Group: Applications/System -Requires: %{name}-common = %{samba_depver} +Requires: %{name}-common-libs = %{samba_depver} Requires: %{name}-libs = %{samba_depver} Provides: samba4-dc-libs = %{samba_depver} @@ -1244,14 +1261,7 @@ rm -rf %{buildroot} ### COMMON %files common %defattr(-,root,root) -#%{_libdir}/samba/charset ??? %{_prefix}/lib/tmpfiles.d/samba.conf -%{_bindir}/net -%{_bindir}/pdbedit -%{_bindir}/profiles -%{_bindir}/smbcontrol -%{_bindir}/smbpasswd -%{_bindir}/testparm %{_datadir}/samba/codepages %dir %{_sysconfdir}/logrotate.d/ %config(noreplace) %{_sysconfdir}/logrotate.d/samba @@ -1264,17 +1274,10 @@ rm -rf %{buildroot} %config(noreplace) %{_sysconfdir}/samba/smb.conf %config(noreplace) %{_sysconfdir}/samba/lmhosts %config(noreplace) %{_sysconfdir}/sysconfig/samba -%{_mandir}/man1/profiles.1* -%{_mandir}/man1/smbcontrol.1* -%{_mandir}/man1/testparm.1* -%{_mandir}/man5/lmhosts.5* -%{_mandir}/man5/smb.conf.5* -%{_mandir}/man5/smbpasswd.5* -%{_mandir}/man7/samba.7* -%{_mandir}/man8/net.8* -%{_mandir}/man8/pdbedit.8* -%{_mandir}/man8/smbpasswd.8* +### COMMON-libs +%files common-libs +%defattr(-,root,root) # common libraries %{_libdir}/samba/libpopt-samba3-samba4.so @@ -1288,6 +1291,25 @@ rm -rf %{buildroot} %{_libdir}/security/pam_smbpass.so %endif +%files common-tools +%defattr(-,root,root) +%{_bindir}/net +%{_bindir}/pdbedit +%{_bindir}/profiles +%{_bindir}/smbcontrol +%{_bindir}/smbpasswd +%{_bindir}/testparm +%{_mandir}/man1/profiles.1* +%{_mandir}/man1/smbcontrol.1* +%{_mandir}/man1/testparm.1* +%{_mandir}/man5/lmhosts.5* +%{_mandir}/man5/smb.conf.5* +%{_mandir}/man5/smbpasswd.5* +%{_mandir}/man7/samba.7* +%{_mandir}/man8/net.8* +%{_mandir}/man8/pdbedit.8* +%{_mandir}/man8/smbpasswd.8* + ### DC %files dc %defattr(-,root,root)