path: root/
diff options
authorAmar Tumballi <>2010-09-22 04:23:45 +0000
committerVijay Bellur <>2010-09-22 04:14:36 -0700
commit3225d7ccf599e726012fb2d32fe3cc68b979e0ea (patch)
tree165caf75627f27407d574cd58b22dcd3841d0afb /
parentd42f248c58b2ca73fb56a3e091c8e967e2435546 (diff)
rpmspec file: add option for '--without rdma'
Thanks to Bernard Li <> for the patch Signed-off-by: Amar Tumballi <> Signed-off-by: Vijay Bellur <> BUG: 1650 (Add '--without rdma' rpmbuild argument) URL:
Diffstat (limited to '')
1 files changed, 11 insertions, 4 deletions
diff --git a/ b/
index b17e5608734..935859d8a6c 100644
--- a/
+++ b/
@@ -3,6 +3,10 @@
# e.g. release_version 2.MSW
%define release 1%{?dist}
+# if you wish to compile an rpm without rdma support, compile like this...
+# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without rdma
+%{?_without_rdma:%define _without_rdma --disable-ibverbs}
# if you wish to compile an rpm without epoll...
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without epoll
%{?_without_epoll:%define _without_epoll --disable-epoll}
@@ -57,6 +61,7 @@ This package includes the glusterfs binary, the glusterd daemon and the gluster
command line, libglusterfs and glusterfs translator modules common to both
GlusterFS server and client framework.
+%if 0%{!?_without_rdma:1}
%package rdma
Summary: GlusterFS rdma
Group: Applications/File
@@ -72,6 +77,7 @@ called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.
This package provides support to ib-verbs library.
%package fuse
Summary: GlusterFS Fuse
@@ -94,7 +100,7 @@ This package provides support to FUSE based clients.
-%configure %{?_without_epoll} %{?_with_fusermount}
+%configure %{?_without_rdma} %{?_without_epoll} %{?_with_fusermount}
# Remove rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@@ -149,7 +155,9 @@ fi
%dir /var/log/glusterfs
+%if 0%{!?_without_rdma:1}
%exclude %{_libdir}/glusterfs/%{version}/rpc-transport/rdma*
%exclude %{_libdir}/glusterfs/%{version}/xlator/mount/fuse*
%config %{_sysconfdir}/glusterfs
@@ -158,9 +166,11 @@ fi
+%if 0%{!?_without_rdma:1}
%files rdma
%files fuse
@@ -177,6 +187,3 @@ fi
fully restructured to adhere to Fedora rpm standards.
Older changelog removed as there were warnings when
tried with 'rpmlint'.