From 39f81f495aa6aad57502028631e98b6b81624a10 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 8 Jun 2020 09:31:34 +0200 Subject: [PATCH] Remove manages when not needed instead of exluding them --- samba.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/samba.spec b/samba.spec index cde20d0..0d41176 100644 --- a/samba.spec +++ b/samba.spec @@ -1073,6 +1073,15 @@ for i in \ done %endif +%if ! %{with_vfs_glusterfs} +rm -f %{buildroot}%{_mandir}/man8/vfs_glusterfs.8* +%endif + +%if ! %{with_vfs_cephfs} +rm -f %{buildroot}%{_mandir}/man8/vfs_ceph.8* +rm -f %{buildroot}%{_mandir}/man8/vfs_ceph_snapshots.8* +%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} @@ -1383,15 +1392,6 @@ fi %{_mandir}/man8/vfs_worm.8* %{_mandir}/man8/vfs_xattr_tdb.8* -%if ! %{with_vfs_glusterfs} -%exclude %{_mandir}/man8/vfs_glusterfs.8* -%endif - -%if ! %{with_vfs_cephfs} -%exclude %{_mandir}/man8/vfs_ceph.8* -%exclude %{_mandir}/man8/vfs_ceph_snapshots.8* -%endif - %attr(775,root,printadmin) %dir /var/lib/samba/drivers ### CLIENT