Fix build requirements when the client is disabled.

This commit is contained in:
Matthias Saou 2008-02-03 14:21:47 +00:00
parent 68ec57ec23
commit 32a78cd432

View File

@ -20,7 +20,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): /sbin/chkconfig Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service, /sbin/chkconfig Requires(preun): /sbin/service, /sbin/chkconfig
Requires(postun): /sbin/service Requires(postun): /sbin/service
BuildRequires: fuse-devel
BuildRequires: python-devel BuildRequires: python-devel
%{!?_without_ibverbs:BuildRequires: libibverbs-devel} %{!?_without_ibverbs:BuildRequires: libibverbs-devel}
BuildRequires: flex, bison, byacc BuildRequires: flex, bison, byacc
@ -53,11 +52,13 @@ This package includes libglusterfs and glusterfs translator modules
common to both GlusterFS server and client framework. common to both GlusterFS server and client framework.
%if 0%{!?_without_client:1}
%package client %package client
Summary: GlusterFS Client Summary: GlusterFS Client
Group: Applications/File Group: Applications/File
Requires: fuse Requires: fuse
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
BuildRequires: fuse-devel
%description client %description client
GlusterFS is a clustered file-system capable of scaling to several GlusterFS is a clustered file-system capable of scaling to several
@ -69,6 +70,7 @@ called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable. is in userspace and easily manageable.
This package provides the FUSE based GlusterFS client. This package provides the FUSE based GlusterFS client.
%endif
%package server %package server