rpms/glusterfs/EL-4 glusterfs.spec,1.1,1.2
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Sun Feb 3 20:18:39 UTC 2008
Author: thias
Update of /cvs/extras/rpms/glusterfs/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31061/EL-4
Modified Files:
glusterfs.spec
Log Message:
Disable python bindings for < 2.4 (required for EL-4).
Index: glusterfs.spec
===================================================================
RCS file: /cvs/extras/rpms/glusterfs/EL-4/glusterfs.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- glusterfs.spec 3 Feb 2008 14:31:54 -0000 1.1
+++ glusterfs.spec 3 Feb 2008 20:18:01 -0000 1.2
@@ -1,12 +1,20 @@
-# Make it possible to disable the client by passing --without client
+# Possible rpmbuild options
+%{?_without_ibverbs:%define _without_ibverbs --disable-ibverbs}
%{?_without_client:%define _without_client --disable-fuse-client}
-# Default to disabling client on RHEL, but allow forcing --with client
+%{?_without_python:%define _without_python --disable-python}
+
+# Default to disabling client on RHEL, but allow forcing --with client too
%{?rhel:%{!?_with_client:%define _without_client --disable-fuse-client}}
+# Disable the python bindings if we have < 2.4, since 2.4+ is required
+%if "%(%{__python} -c "import sys ; print sys.version[:3]")" < "2.4"
+%define _without_python --disable-python
+%endif
+
Summary: Cluster File System
Name: glusterfs
Version: 1.3.8
-Release: 0.7%{?dist}
+Release: 0.8%{?dist}
License: GPLv3+
Group: System Environment/Base
URL: http://www.gluster.org/docs/index.php/GlusterFS
@@ -20,8 +28,9 @@
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service, /sbin/chkconfig
Requires(postun): /sbin/service
-BuildRequires: python-devel
%{!?_without_ibverbs:BuildRequires: libibverbs-devel}
+%{!?_without_client:BuildRequires: fuse-devel}
+%{!?_without_python:BuildRequires: python-devel}
BuildRequires: flex, bison, byacc
%description
@@ -52,13 +61,11 @@
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
@@ -70,7 +77,6 @@
is in userspace and easily manageable.
This package provides the FUSE based GlusterFS client.
-%endif
%package server
@@ -114,7 +120,7 @@
%build
-%configure %{?_without_ibverbs:--disable-ibverbs} %{?_without_client}
+%configure %{?_without_ibverbs} %{?_without_client} %{?_without_python}
%{__make} %{?_smp_mflags}
@@ -208,6 +214,9 @@
%changelog
+* Sun Feb 3 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.8
+- Add python version check and disable bindings for version < 2.4.
+
* Sun Feb 3 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.7
- Add --without client rpmbuild option, make it the default for RHEL (no fuse).
(I hope "rhel" is the proper default macro name, couldn't find it...)
More information about the fedora-extras-commits
mailing list