233933
From 40eb62a8872ce061416e899fb6c0784b6253ab16 Mon Sep 17 00:00:00 2001
233933
From: Niels de Vos <ndevos@redhat.com>
233933
Date: Fri, 7 Dec 2018 14:05:21 +0530
233933
Subject: [PATCH 11/52] rpm: glusterfs-devel for client-builds should not
233933
 depend on -server
233933
233933
glusterfs-devel for client-side packages should *not* include the
233933
libgfdb.so symlink and libgfdb.pc file or any of the libchangelog
233933
ones.
233933
233933
Label: DOWNSTREAM ONLY
233933
233933
Change-Id: Ifb4a9cf48841e5af5dd0a98b6de51e2ee469fc56
233933
Signed-off-by: Niels de Vos <ndevos@redhat.com>
233933
Reviewed-on: https://code.engineering.redhat.com/gerrit/51019
233933
Reviewed-by: Balamurugan Arumugam <barumuga@redhat.com>
233933
Tested-by: Balamurugan Arumugam <barumuga@redhat.com>
233933
Reviewed-on: https://code.engineering.redhat.com/gerrit/60139
233933
Tested-by: Milind Changire <mchangir@redhat.com>
233933
---
233933
 glusterfs.spec.in | 86 +++++++++++++++++++++++++++++++++++++++----------------
233933
 1 file changed, 62 insertions(+), 24 deletions(-)
233933
233933
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
233933
index b70dbfc..1c631db 100644
233933
--- a/glusterfs.spec.in
233933
+++ b/glusterfs.spec.in
233933
@@ -450,30 +450,6 @@ is in user space and easily manageable.
233933
 This package provides support to FUSE based clients and inlcudes the
233933
 glusterfs(d) binary.
233933
 
233933
-%if ( 0%{!?_without_server:1} )
233933
-%package ganesha
233933
-Summary:          NFS-Ganesha configuration
233933
-Group:            Applications/File
233933
-
233933
-Requires:         %{name}-server%{?_isa} = %{version}-%{release}
233933
-Requires:         nfs-ganesha-gluster, pcs, dbus
233933
-%if ( 0%{?rhel} && 0%{?rhel} == 6 )
233933
-Requires:         cman, pacemaker, corosync
233933
-%endif
233933
-
233933
-%description ganesha
233933
-GlusterFS is a distributed file-system capable of scaling to several
233933
-petabytes. It aggregates various storage bricks over Infiniband RDMA
233933
-or TCP/IP interconnect into one large parallel network file
233933
-system. GlusterFS is one of the most sophisticated file systems in
233933
-terms of features and extensibility.  It borrows a powerful concept
233933
-called Translators from GNU Hurd kernel. Much of the code in GlusterFS
233933
-is in user space and easily manageable.
233933
-
233933
-This package provides the configuration and related files for using
233933
-NFS-Ganesha as the NFS server using GlusterFS
233933
-%endif
233933
-
233933
 %if ( 0%{!?_without_georeplication:1} )
233933
 %package geo-replication
233933
 Summary:          GlusterFS Geo-replication
233933
@@ -1157,6 +1133,62 @@ exit 0
233933
 %exclude %{_datadir}/glusterfs/run-tests.sh
233933
 %exclude %{_datadir}/glusterfs/tests
233933
 %endif
233933
+%if 0%{?_without_server:1}
233933
+%exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-5.8.conf
233933
+%exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-7.2.conf
233933
+%exclude %{_sysconfdir}/glusterfs/glusterd.vol
233933
+%exclude %{_sysconfdir}/glusterfs/glusterfs-georep-logrotate
233933
+%exclude %{_sysconfdir}/glusterfs/glusterfs-logrotate
233933
+%exclude %{_sysconfdir}/glusterfs/group-db-workload
233933
+%exclude %{_sysconfdir}/glusterfs/group-distributed-virt
233933
+%exclude %{_sysconfdir}/glusterfs/group-gluster-block
233933
+%exclude %{_sysconfdir}/glusterfs/group-metadata-cache
233933
+%exclude %{_sysconfdir}/glusterfs/group-nl-cache
233933
+%exclude %{_sysconfdir}/glusterfs/group-virt.example
233933
+%exclude %{_sysconfdir}/glusterfs/logger.conf.example
233933
+%exclude %{_sysconfdir}/rsyslog.d/gluster.conf.example
233933
+%exclude %{_prefix}/bin/glusterfind
233933
+%exclude %{_prefix}/lib/firewalld/services/glusterfs.xml
233933
+%exclude %{_prefix}/lib/systemd/system/glusterd.service
233933
+%exclude %{_prefix}/lib/systemd/system/glusterfssharedstorage.service
233933
+%exclude %{_prefix}/lib/tmpfiles.d/gluster.conf
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/arbiter.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bit-rot.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bitrot-stub.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/index.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/leases.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/locks.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/marker.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/posix-locks.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quota.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quotad.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/sdfs.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/selinux.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-server.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/thin-arbiter.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/trash.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/upcall.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt/glusterd.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/decompounder.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/server.so
233933
+%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage/posix.so
233933
+%exclude %{_libexecdir}/glusterfs/*
233933
+%exclude %{_sbindir}/conf.py
233933
+%exclude %{_sbindir}/gcron.py
233933
+%exclude %{_sbindir}/gf_attach
233933
+%exclude %{_sbindir}/gfind_missing_files
233933
+%exclude %{_sbindir}/glfsheal
233933
+%exclude %{_sbindir}/gluster
233933
+%exclude %{_sbindir}/gluster-setgfid2path
233933
+%exclude %{_sbindir}/glusterd
233933
+%exclude %{_sbindir}/snap_scheduler.py
233933
+%exclude %{_datadir}/glusterfs/scripts/control-cpu-load.sh
233933
+%exclude %{_datadir}/glusterfs/scripts/control-mem.sh
233933
+%exclude %{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
233933
+%exclude %{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh
233933
+%exclude %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
233933
+%exclude %{_sharedstatedir}/glusterd/*
233933
+%endif
233933
 
233933
 %files api
233933
 %exclude %{_libdir}/*.so
233933
@@ -1190,7 +1222,13 @@ exit 0
233933
 %exclude %{_includedir}/glusterfs/api
233933
 %exclude %{_libdir}/libgfapi.so
233933
 %{_libdir}/*.so
233933
+%if ( 0%{?_without_server:1} )
233933
+%exclude %{_libdir}/pkgconfig/libgfchangelog.pc
233933
+%exclude %{_libdir}/libgfchangelog.so
233933
+%else
233933
 %{_libdir}/pkgconfig/libgfchangelog.pc
233933
+%{_libdir}/libgfchangelog.so
233933
+%endif
233933
 
233933
 %files client-xlators
233933
 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
233933
-- 
233933
1.8.3.1
233933