Summary: Cluster File System Name: glusterfs Version: 1.3.8 Release: 0.5%{?dist} License: GPLv3+ Group: System Environment/Base URL: http://www.gluster.org/docs/index.php/GlusterFS Source0: http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/glusterfs-%{version}.tar.gz Source1: glusterfsd.init Source2: glusterfsd.sysconfig Source3: umount.glusterfs Patch0: glusterfs-1.3.7-ocreat.patch Patch1: glusterfs-1.3.8-mount.patch 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 BuildRequires: libibverbs-devel BuildRequires: flex, bison, byacc %description GlusterFS is a clustered file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is one of the most sophisticated file system in terms of features and extensibility. It borrows a powerful concept called Translators from GNU Hurd kernel. Much of the code in GlusterFS is in userspace and easily manageable. %package libs Summary: GlusterFS Library and Translators Group: System Environment/Libraries Obsoletes: glusterfs-common >= 1.3.7-2 %description libs GlusterFS is a clustered file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is one of the most sophisticated file system in terms of features and extensibility. It borrows a powerful concept called Translators from GNU Hurd kernel. Much of the code in GlusterFS is in userspace and easily manageable. This package includes libglusterfs and glusterfs translator modules common to both GlusterFS server and client framework. %package client Summary: GlusterFS Client Group: Applications/File Requires: fuse Requires: %{name}-libs = %{version}-%{release} %description client GlusterFS is a clustered file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is one of the most sophisticated file system in terms of features and extensibility. It borrows a powerful concept 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. %package server Summary: GlusterFS Server Group: System Environment/Daemons Requires: %{name}-libs = %{version}-%{release} %description server GlusterFS is a clustered file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is one of the most sophisticated file system in terms of features and extensibility. It borrows a powerful concept called Translators from GNU Hurd kernel. Much of the code in GlusterFS is in userspace and easily manageable. This package provides the glusterfs server daemon. %package devel Summary: GlusterFS Development Libraries Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel GlusterFS is a clustered file-system capable of scaling to several peta-bytes. It aggregates various storage bricks over Infiniband RDMA or TCP/IP interconnect into one large parallel network file system. GlusterFS is one of the most sophisticated file system in terms of features and extensibility. It borrows a powerful concept called Translators from GNU Hurd kernel. Much of the code in GlusterFS is in userspace and easily manageable. This package provides the development libraries. %prep %setup -q %patch0 -p1 -b .ocreat %patch1 -p1 -b .mount %build %configure %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} examples %{__make} install DESTDIR=%{buildroot} %{__mkdir_p} %{buildroot}/var/log/glusterfs %{__mkdir_p} %{buildroot}%{_includedir}/glusterfs %{__install} -p -m 0644 libglusterfs/src/*.h \ %{buildroot}%{_includedir}/glusterfs/ # Remove installed docs, we include them ourselves as %%doc %{__rm} -rf %{buildroot}%{_datadir}/doc/glusterfs/ # Rename the samples, so we can include them as %%config for file in %{buildroot}%{_sysconfdir}/glusterfs/*.sample; do %{__mv} ${file} `dirname ${file}`/`basename ${file} .sample` done # Clean up the examples we want to include as %%doc %{__cp} -a doc/examples examples %{__rm} -f examples/Makefile* # Install init script and sysconfig file %{__install} -D -p -m 0755 %{SOURCE1} \ %{buildroot}%{_sysconfdir}/init.d/glusterfsd %{__install} -D -p -m 0644 %{SOURCE2} \ %{buildroot}%{_sysconfdir}/sysconfig/glusterfsd # Install wrapper umount script %{__install} -D -p -m 0755 %{SOURCE3} \ %{buildroot}/sbin/umount.glusterfs %clean %{__rm} -rf %{buildroot} %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %post server /sbin/chkconfig --add glusterfsd %preun server if [ $1 -eq 0 ]; then /sbin/service glusterfsd stop &>/dev/null || : /sbin/chkconfig --del glusterfsd fi %postun if [ $1 -ge 1 ]; then /sbin/service glusterfsd condrestart &>/dev/null || : fi %files libs %doc AUTHORS ChangeLog COPYING NEWS README %{_libdir}/glusterfs/ %{_libdir}/*.so.* %files client %{_sbindir}/glusterfs /sbin/mount.glusterfs /sbin/umount.glusterfs %dir /var/log/glusterfs/ %files server %doc examples/ doc/glusterfs-*.vol.sample %dir %{_sysconfdir}/glusterfs/ %config(noreplace) %{_sysconfdir}/glusterfs/*.vol %config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd %{_sysconfdir}/init.d/glusterfsd %{_sbindir}/glusterfsd %dir /var/log/glusterfs/ %files devel %{_includedir}/glusterfs/ %exclude %{_libdir}/*.a %exclude %{_libdir}/*.la %{_libdir}/*.so %changelog * Mon Jan 14 2008 Matthias Saou 1.3.8-0.5 - Update to current TLA again, patch-636 which fixes the known segfaults. * Thu Jan 10 2008 Matthias Saou 1.3.8-0.4 - Downgrade to glusterfs--mainline--2.5--patch-628 which is more stable. * Tue Jan 8 2008 Matthias Saou 1.3.8-0.3 - Update to current TLA snapshot. - Include umount.glusterfs wrapper script (really needed? dunno). - Include patch to mount wrapper to avoid multiple identical mounts. * Sun Dec 30 2007 Matthias Saou 1.3.8-0.1 - Update to current TLA snapshot, which includes "volume-name=" fstab option. * Mon Dec 3 2007 Matthias Saou 1.3.7-6 - Re-add the /var/log/glusterfs directory in the client sub-package (required). - Include custom patch to support vol= in fstab for -n glusterfs client option. * Mon Nov 26 2007 Matthias Saou 1.3.7-4 - Re-enable libibverbs. - Check and update License field to GPLv3+. - Add glusterfs-common obsoletes, to provide upgrade path from old packages. - Include patch to add mode to O_CREATE opens. * Thu Nov 22 2007 Matthias Saou 1.3.7-3 - Remove Makefile* files from examples. - Include RHEL/Fedora type init script, since the included ones don't do. * Wed Nov 21 2007 Matthias Saou 1.3.7-1 - Major spec file cleanup. - Add misssing %%clean section. - Fix ldconfig calls (weren't set for the proper sub-package). * Sat Aug 4 2007 Matt Paine - 1.3.pre7 - Added support to build rpm without ibverbs support (use --without ibverbs switch) * Sun Jul 15 2007 Matt Paine - 1.3.pre6 - Initial spec file