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