summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorJustin Clift <justin@gluster.org>2014-03-07 18:01:05 +0000
committerVijay Bellur <vbellur@redhat.com>2014-03-24 10:29:11 -0700
commit29cbd30acd5d7a66451df09c7b94ff4bbe8b0e18 (patch)
tree9c373edadf8233e8aa59d3bcc4396060f5fbaf1b /glusterfs.spec.in
parent504b90a57a6e6e40a694dab1ef889bbf6f372980 (diff)
build: Don't build geo-replication rpms when on EL5
Also fixes a typo bug where geo-replication isn't being disabled correctly Backport of http://review.gluster.org/#/c/7210/ BUG: 1074045 Change-Id: I0f8f632c4ed1bdde179d6d7278e10e196549ca38 Signed-off-by: Justin Clift <justin@gluster.org> Reviewed-on: http://review.gluster.org/7297 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index d7bc64809ad..4beb210040e 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -24,7 +24,12 @@
# if you wish to compile an rpm without geo-replication support, compile like this...
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without georeplication
-%{?_without_georeplication:%global _without_georeplication --disable-geo-replication}
+%{?_without_georeplication:%global _without_georeplication --disable-georeplication}
+
+# Disable geo-replication on EL5, as its default Python is too old
+%if ( 0%{?rhel} && 0%{?rhel} < 6 )
+%global _without_georeplication --disable-georeplication
+%endif
# if you wish to compile an rpm without the OCF resource agents...
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without ocf
@@ -612,8 +617,10 @@ mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/nfs/run
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/nfs-server.vol
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/run/nfs.pid
+%if ( 0%{!?_without_georeplication:1} )
install -p -m 0744 extras/hook-scripts/S56glusterd-geo-rep-create-post.sh \
%{buildroot}%{_sharedstatedir}/glusterd/hooks/1/gsync-create/post
+%endif
find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glusterfs