From 32a78cd43217cb4b28e8cf4b74e5e91fdc66b646 Mon Sep 17 00:00:00 2001 From: Matthias Saou Date: Sun, 3 Feb 2008 14:21:47 +0000 Subject: [PATCH] Fix build requirements when the client is disabled. --- glusterfs.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glusterfs.spec b/glusterfs.spec index 22b9037..7235d38 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -20,7 +20,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires(post): /sbin/chkconfig Requires(preun): /sbin/service, /sbin/chkconfig Requires(postun): /sbin/service -BuildRequires: fuse-devel BuildRequires: python-devel %{!?_without_ibverbs:BuildRequires: libibverbs-devel} BuildRequires: flex, bison, byacc @@ -53,11 +52,13 @@ This package includes libglusterfs and glusterfs translator modules common to both GlusterFS server and client framework. +%if 0%{!?_without_client:1} %package client Summary: GlusterFS Client Group: Applications/File Requires: fuse Requires: %{name}-libs = %{version}-%{release} +BuildRequires: fuse-devel %description client 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. This package provides the FUSE based GlusterFS client. +%endif %package server