a3470f
From b40c05f7c099e860464faddd81722c7a3ab860a4 Mon Sep 17 00:00:00 2001
a3470f
From: Niels de Vos <ndevos@redhat.com>
a3470f
Date: Wed, 10 Jun 2015 16:16:47 +0200
a3470f
Subject: [PATCH 10/74] build: packaging corrections for RHEL-5
a3470f
a3470f
Because the RHEL-5 version of these packages do not contain the -server
a3470f
bits, some additional changes for the .spec are needed. These changes
a3470f
are not applicable upstream.
a3470f
a3470f
Label: DOWNSTREAM ONLY
a3470f
a3470f
Change-Id: I3c4237bd986617f42b725efd75d1128a69e5dbe3
a3470f
Signed-off-by: Niels de Vos <ndevos@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/50447
a3470f
Reviewed-by: Balamurugan Arumugam <barumuga@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/60136
a3470f
Tested-by: Milind Changire <mchangir@redhat.com>
a3470f
---
a3470f
 glusterfs.spec.in | 18 ++++++++++--------
a3470f
 1 file changed, 10 insertions(+), 8 deletions(-)
a3470f
a3470f
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
a3470f
index 8458e8a..dbdb818 100644
a3470f
--- a/glusterfs.spec.in
a3470f
+++ b/glusterfs.spec.in
a3470f
@@ -92,6 +92,7 @@
a3470f
 %global _build_server 1
a3470f
 %else
a3470f
 %global _build_server 0
a3470f
+%global _without_georeplication --disable-georeplication
a3470f
 %endif
a3470f
 
a3470f
 %global _without_extra_xlators 1
a3470f
@@ -1068,17 +1069,14 @@ exit 0
a3470f
 %if ( ! 0%{?_build_server} )
a3470f
 # exclude ganesha files
a3470f
 %exclude %{_prefix}/lib/ocf/*
a3470f
-# exclude geo-replication files
a3470f
-%exclude %{_sysconfdir}/logrotate.d/glusterfs-georep
a3470f
+# exclude incrementalapi
a3470f
 %exclude %{_libexecdir}/glusterfs/*
a3470f
 %exclude %{_sbindir}/gfind_missing_files
a3470f
-%exclude %{_datadir}/glusterfs/scripts/get-gfid.sh
a3470f
-%exclude %{_datadir}/glusterfs/scripts/slave-upgrade.sh
a3470f
-%exclude %{_datadir}/glusterfs/scripts/gsync-upgrade.sh
a3470f
-%exclude %{_datadir}/glusterfs/scripts/generate-gfid-file.sh
a3470f
-%exclude %{_datadir}/glusterfs/scripts/gsync-sync-gfid
a3470f
-%exclude %{_sharedstatedir}/glusterd/*
a3470f
+%exclude %{_libexecdir}/glusterfs/glusterfind
a3470f
+%exclude %{_bindir}/glusterfind
a3470f
+%exclude %{_libexecdir}/glusterfs/peer_add_secret_pub
a3470f
 # exclude server files
a3470f
+%exclude %{_sharedstatedir}/glusterd/*
a3470f
 %exclude %{_sysconfdir}/glusterfs
a3470f
 %exclude %{_sysconfdir}/glusterfs/glusterd.vol
a3470f
 %exclude %{_sysconfdir}/glusterfs/glusterfs-georep-logrotate
a3470f
@@ -1093,7 +1091,9 @@ exit 0
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/arbiter.so
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bit-rot.so
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bitrot-stub.so
a3470f
+%if ( 0%{!?_without_tiering:1} )
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/changetimerecorder.so
a3470f
+%endif
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/index.so
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/leases.so
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/locks.so
a3470f
@@ -1107,7 +1107,9 @@ exit 0
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/decompounder.so
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/server*
a3470f
 %exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage*
a3470f
+%if ( 0%{!?_without_tiering:1} )
a3470f
 %exclude %{_libdir}/libgfdb.so.*
a3470f
+%endif
a3470f
 %exclude %{_sbindir}/gcron.py
a3470f
 %exclude %{_sbindir}/glfsheal
a3470f
 %exclude %{_sbindir}/glusterd
a3470f
-- 
a3470f
1.8.3.1
a3470f