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