From 67c517ec83898ea5b5771e16925e40cb901b4848 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 12 Apr 2016 09:47:11 +0200 Subject: specfile cleanup from alexander for non-dc builds --- samba.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/samba.spec b/samba.spec index b6659d8..96a4e3f 100644 --- a/samba.spec +++ b/samba.spec @@ -854,6 +854,17 @@ install -m 0755 packaging/NetworkManager/30-winbind-systemd \ install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5 touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so +%if ! %with_dc +for i in %{_libdir}/samba/libdfs-server-ad-samba4.so \ + %{_libdir}/samba/libdnsserver-common-samba4.so \ + %{_mandir}/man8/samba.8 \ + %{_mandir}/man8/samba-tool.8 \ + %{_libdir}/samba/ldb/ildap.so \ + %{_libdir}/samba/ldb/ldbsamba_extensions.so ; do + rm -f %{buildroot}$i +done +%endif + # This makes the right links, as rpmlint requires that # the ldconfig-created links be recorded in the RPM. /sbin/ldconfig -N -n %{buildroot}%{_libdir} @@ -1457,11 +1468,6 @@ rm -rf %{buildroot} %{_mandir}/man8/samba-tool.8* %else # with_dc %doc packaging/README.dc -%exclude %{_mandir}/man8/samba.8* -%exclude %{_mandir}/man8/samba-tool.8* -%exclude %{_libdir}/samba/ldb/ildap.so -%exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so - %endif # with_dc ### DC-LIBS -- cgit v1.2.3