d1681e
From cf8f5a4e4098a6aae9b986dc2da2006eadd4fef1 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
d1681e
Subject: [PATCH 13/74] rpm: glusterfs-devel for client-builds should not
d1681e
 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
---
d1681e
 glusterfs.spec.in | 24 +++++++++++++++++++-----
d1681e
 1 file changed, 19 insertions(+), 5 deletions(-)
cb8e9e
cb8e9e
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
d1681e
index 68eba56..b2fb4d5 100644
cb8e9e
--- a/glusterfs.spec.in
cb8e9e
+++ b/glusterfs.spec.in
d1681e
@@ -1196,9 +1196,10 @@ exit 0
d1681e
 %{_tmpfilesdir}/gluster.conf
d1681e
 %endif
d1681e
 %if ( ! 0%{?_build_server} )
d1681e
-%{_libdir}/pkgconfig/libgfchangelog.pc
d1681e
-%{_libdir}/pkgconfig/libgfdb.pc
d1681e
-%{_sbindir}/gluster-setgfid2path
d1681e
+%exclude %{_libdir}/pkgconfig/libgfchangelog.pc
d1681e
+%exclude %{_libdir}/pkgconfig/libgfdb.pc
d1681e
+%exclude %{_sbindir}/gluster-setgfid2path
d1681e
+%exclude %{_mandir}/man8/gluster-setgfid2path.8*
d1681e
 %endif
d1681e
 
d1681e
 %files api
d1681e
@@ -1226,6 +1227,12 @@ exit 0
d1681e
      %{_includedir}/glusterfs/*
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
d1681e
 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
@@ -1235,10 +1242,14 @@ exit 0
d1681e
      %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/helloworld.*
d1681e
      %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/glupy/negative.*
d1681e
 %if ( 0%{?_build_server} )
d1681e
+%{_libdir}/pkgconfig/libgfchangelog.pc
cb8e9e
+%else
d1681e
 %exclude %{_libdir}/pkgconfig/libgfchangelog.pc
cb8e9e
+%endif
cb8e9e
+%if ( 0%{!?_without_tiering:1} && 0%{?_build_server})
d1681e
+%{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
+%else
d1681e
 %exclude %{_libdir}/pkgconfig/libgfdb.pc
d1681e
-%exclude %{_sbindir}/gluster-setgfid2path
d1681e
-%exclude %{_mandir}/man8/gluster-setgfid2path.8*
cb8e9e
 %endif
cb8e9e
 
cb8e9e
 %files client-xlators
d1681e
@@ -2161,6 +2172,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
-- 
d1681e
1.8.3.1
cb8e9e