d1681e
From 444324cfdcd8da750bc0ae04a3a416725489dd06 Mon Sep 17 00:00:00 2001
d1681e
From: "Bala.FA" <barumuga@redhat.com>
cb8e9e
Date: Fri, 19 Jun 2015 11:09:53 +0530
d1681e
Subject: [PATCH 15/74] build: exclude libgfdb.pc conditionally
cb8e9e
cb8e9e
This patch fixes rhel-5 build failure where libgfdb.pc is not
cb8e9e
applicable.
cb8e9e
cb8e9e
Label: DOWNSTREAM ONLY
cb8e9e
cb8e9e
Change-Id: Ied3978aa14ff6bd72f25eff9759e501100cb6343
cb8e9e
Signed-off-by: Bala.FA <barumuga@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/51099
12a457
Reviewed-on: https://code.engineering.redhat.com/gerrit/60141
12a457
Tested-by: Milind Changire <mchangir@redhat.com>
cb8e9e
---
d1681e
 glusterfs.spec.in | 11 ++++++++++-
d1681e
 1 file changed, 10 insertions(+), 1 deletion(-)
cb8e9e
cb8e9e
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
d1681e
index 0d1161d..f308f37 100644
cb8e9e
--- a/glusterfs.spec.in
cb8e9e
+++ b/glusterfs.spec.in
d1681e
@@ -1058,12 +1058,14 @@ fi
3604df
 %postun libs
3604df
 /sbin/ldconfig
12a457
 
12a457
+%if ( 0%{?_build_server} )
12a457
 %postun server
3604df
 /sbin/ldconfig
3604df
 %if (0%{?_with_firewalld:1})
d1681e
     %firewalld_reload
12a457
 %endif
3604df
 exit 0
12a457
+%endif
12a457
 
12a457
 ##-----------------------------------------------------------------------------
12a457
 ## All %%files should be placed here and keep them grouped
d1681e
@@ -1249,8 +1251,10 @@ exit 0
cb8e9e
 %if ( 0%{!?_without_tiering:1} && 0%{?_build_server})
cb8e9e
 %{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
 %else
cb8e9e
+%if ( 0%{?rhel} && 0%{?rhel} >= 6 )
cb8e9e
 %exclude %{_libdir}/pkgconfig/libgfdb.pc
cb8e9e
 %endif
cb8e9e
+%endif
cb8e9e
 
cb8e9e
 %files client-xlators
d1681e
 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
@@ -1259,7 +1263,7 @@ exit 0
d1681e
 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol
d1681e
      %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/client.so
12a457
 
12a457
-+%if ( 0%{!?_without_extra_xlators:1} )
12a457
+%if ( 0%{!?_without_extra_xlators:1} )
12a457
 %files extra-xlators
d1681e
 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
d1681e
 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption
d1681e
@@ -1378,6 +1382,7 @@ exit 0
12a457
 %endif
12a457
 
12a457
 %if ( 0%{?_build_server} )
12a457
+%if ( 0%{!?_without_regression_tests:1} )
12a457
 %files regression-tests
d1681e
 %dir %{_datadir}/glusterfs
d1681e
      %{_datadir}/glusterfs/run-tests.sh
d1681e
@@ -1385,6 +1390,7 @@ exit 0
d1681e
 %exclude %{_datadir}/glusterfs/tests/vagrant
d1681e
 %exclude %{_datadir}/share/glusterfs/tests/basic/rpm.t
12a457
 %endif
12a457
+%endif
12a457
 
12a457
 %if ( 0%{?_build_server} )
12a457
 %if ( 0%{!?_without_ocf:1} )
d1681e
@@ -2295,6 +2301,9 @@ end
12a457
 * Tue Aug 18 2015 Niels de Vos <ndevos@redhat.com>
12a457
 - Include missing directories for glusterfind hooks scripts (#1225465)
cb8e9e
 
cb8e9e
+* Fri Jun 19 2015 Bala.FA <barumuga@redhat.com>
cb8e9e
+- exclude libgfdb.pc conditionally for rhel-5 (#1233486)
cb8e9e
+
cb8e9e
 * Thu Jun 18 2015 Bala.FA <barumuga@redhat.com>
cb8e9e
 - add pretrans check for client-xlators, ganesha and python-gluster
cb8e9e
   sub-packages (#1232641)
cb8e9e
-- 
d1681e
1.8.3.1
cb8e9e