Hi, I have several machines where i wanted to put glusterfsd but they lack apropiate fuse version so rpmbuild complains about invalid fuse version < 2.6.2 so i duplicated "--without iverbs" rpm code to avoid client files (the fuse part). I dont know if this way is apropiate but i lack rpm knowledge to do this right. Perhaps someone can improve this. "rpmbuild -ta glusterfs-1.3.7.tar.gz --without ibverbs --without fuseclient " now creates common and server packages avoiding fuse client part Regards, Angel Alvarez diff -pruN glusterfs-1.3.7/glusterfs.spec glusterfs-1.3.7_angel/glusterfs.spec --- glusterfs-1.3.7/glusterfs.spec 2007-10-18 13:35:58.000000000 +0200 +++ glusterfs-1.3.7_angel/glusterfs.spec 2008-01-12 14:43:42.000000000 +0100 @@ -6,6 +6,7 @@ # if you wish to compile an rpm without ibverbs support, compile like this... # rpmbuild -ta glusterfs-1.3.7.tar.gz --without ibverbs %define with_ibverbs %{?_without_ibverbs:0}%{?!_without_ibverbs:1} +%define with_fuseclient %{?_without_fuseclient:0}%{?!_without_fuseclient:1} Summary: Cluster File System @@ -23,7 +24,6 @@ BuildRequires: byacc bison flex %if %with_ibverbs BuildRequires: libibverbs-devel %endif -BuildRequires: libsysfs-devel BuildRequires: gcc BuildRequires: make URL: http://www.gluster.org/docs/index.php/GlusterFS @@ -117,7 +117,10 @@ This package provides the development li %if "%{with_ibverbs}" == "0" %define configure_options --disable-ibverbs %endif -./configure --prefix= %{?configure_options:%configure_options} +%if "%{with_fuseclient}" == "0" +%define configure_fuseoptions --disable-fuse-client +%endif +./configure --prefix= %{?configure_options:%configure_options} %{?configure_fuseoptions:%configure_fuseoptions} %{__make} @@ -146,12 +149,15 @@ This package provides the development li %config /etc/glusterfs/ /sbin/glusterfsd +%if "%{with_fuseclient}" == "1" %files client %doc AUTHORS ChangeLog COPYING INSTALL NEWS README /sbin/glusterfs /sbin/mount.glusterfs +%endif + %files devel %doc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS /lib/*.a -- ------------------------------------------------ Angel Alvarez ------------------------------------------------