build: Don't build geo-replication rpms when on EL5
Also fixes a typo bug where geo-replication isn't being disabled correctly BUG: 1074045 Change-Id: I28d42637bedcc28d65b6a34ab0183559202c4aed Signed-off-by: Justin Clift <justin@gluster.org> Reviewed-on: http://review.gluster.org/7210 Reviewed-by: Joe Julian <joe@julianfamily.org> Tested-by: Joe Julian <joe@julianfamily.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
parent
82f20483f7
commit
e9ab4bc851
@ -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
|
||||
@ -615,8 +620,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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user