12a457
From 9a64e5f512ef92f0a574e9c86f07a3722d0a6016 Mon Sep 17 00:00:00 2001
cb8e9e
From: Niels de Vos <ndevos@redhat.com>
cb8e9e
Date: Thu, 18 Jun 2015 12:16:16 +0200
12a457
Subject: [PATCH 21/26] rpm: glusterfs-devel for client-builds should not depend on -server
cb8e9e
cb8e9e
glusterfs-devel for client-side packages should *not* include the
cb8e9e
libgfdb.so symlink and libgfdb.pc file or any of the libchangelog
cb8e9e
ones.
cb8e9e
cb8e9e
Label: DOWNSTREAM ONLY
cb8e9e
cb8e9e
Change-Id: Ifb4a9cf48841e5af5dd0a98b6de51e2ee469fc56
cb8e9e
Signed-off-by: Niels de Vos <ndevos@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/51019
cb8e9e
Reviewed-by: Balamurugan Arumugam <barumuga@redhat.com>
cb8e9e
Tested-by: Balamurugan Arumugam <barumuga@redhat.com>
12a457
Reviewed-on: https://code.engineering.redhat.com/gerrit/60139
12a457
Tested-by: Milind Changire <mchangir@redhat.com>
cb8e9e
---
cb8e9e
 glusterfs.spec.in |   17 ++++++++++++++++-
cb8e9e
 1 files changed, 16 insertions(+), 1 deletions(-)
cb8e9e
cb8e9e
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
12a457
index 92bb328..f6cff05 100644
cb8e9e
--- a/glusterfs.spec.in
cb8e9e
+++ b/glusterfs.spec.in
12a457
@@ -1119,14 +1119,26 @@ exit 0
cb8e9e
 %exclude %{_includedir}/glusterfs/y.tab.h
cb8e9e
 %exclude %{_includedir}/glusterfs/api
cb8e9e
 %exclude %{_libdir}/libgfapi.so
cb8e9e
+%if ( ! 0%{?_build_server} )
cb8e9e
+%exclude %{_libdir}/libgfchangelog.so
cb8e9e
+%endif
cb8e9e
+%if ( 0%{!?_without_tiering:1} && ! 0%{?_build_server})
cb8e9e
+%exclude %{_libdir}/libgfdb.so
cb8e9e
+%endif
cb8e9e
 %{_libdir}/*.so
cb8e9e
 # Glupy Translator examples
cb8e9e
 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/debug-trace.*
cb8e9e
 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/helloworld.*
cb8e9e
 %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/negative.*
cb8e9e
+%if ( 0%{?_build_server} )
cb8e9e
 %{_libdir}/pkgconfig/libgfchangelog.pc
cb8e9e
-%if ( 0%{!?_without_tiering:1} )
cb8e9e
+%else
cb8e9e
+%exclude %{_libdir}/pkgconfig/libgfchangelog.pc
cb8e9e
+%endif
cb8e9e
+%if ( 0%{!?_without_tiering:1} && 0%{?_build_server})
cb8e9e
 %{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
+%else
cb8e9e
+%exclude %{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
 %endif
cb8e9e
 
cb8e9e
 %files client-xlators
12a457
@@ -1829,6 +1841,9 @@ end
12a457
 * Tue Aug 18 2015 Niels de Vos <ndevos@redhat.com>
12a457
 - Include missing directories for glusterfind hooks scripts (#1225465)
cb8e9e
 
cb8e9e
+* Thu Jun 18 2015 Niels de Vos <ndevos@redhat.com>
cb8e9e
+- glusterfs-devel for client-builds should not depend on -server (#1227029)
cb8e9e
+
12a457
 * Mon Jun 15 2015 Niels de Vos <ndevos@redhat.com>
12a457
 - Replace hook script S31ganesha-set.sh by S31ganesha-start.sh (#1231738)
cb8e9e
 
cb8e9e
-- 
cb8e9e
1.7.1
cb8e9e