GFS_TAR = ../../glusterfs-$(VERSION).tar.gz .PHONY: all all: @echo "To build RPMS run 'make glusterrpms'" .PHONY: glusterrpms glusterrpms_without_autogen .PHONY: autogen prep srcrpm testsrpm clean glusterrpms: autogen glusterrpms_without_autogen glusterrpms_without_autogen: prep srcrpm rpms -rm -rf rpmbuild autogen: cd ../.. \ && rm -rf autom4te.cache \ && ./autogen.sh \ && ./configure --with-previous-options prep: $(MAKE) -C ../.. dist; -mkdir -p rpmbuild/BUILD -mkdir -p rpmbuild/SPECS -mkdir -p rpmbuild/RPMS -mkdir -p rpmbuild/SRPMS -mkdir -p rpmbuild/SOURCES -rm -rf rpmbuild/SOURCES/* cp ../../*.tar.gz ./rpmbuild/SOURCES cp ../../glusterfs.spec ./rpmbuild/SPECS srcrpm: rpmbuild --define '_topdir $(shell pwd)/rpmbuild' -bs rpmbuild/SPECS/glusterfs.spec mv rpmbuild/SRPMS/* . rpms: rpmbuild --define '_topdir $(shell pwd)/rpmbuild' -bb rpmbuild/SPECS/glusterfs.spec mv rpmbuild/RPMS/*/* . # EPEL-5 does not like new versions of rpmbuild and requires some # _source_* defines testsrpm: prep rpmbuild --define '_topdir $(shell pwd)/rpmbuild' \ --define '_source_payload w9.gzdio' \ --define '_source_filedigest_algorithm 1' \ -bs rpmbuild/SPECS/glusterfs.spec mv rpmbuild/SRPMS/* ../.. -rm -rf rpmbuild clean: -rm -rf rpmbuild -rm -f *.rpm KAGE_NAME@ Version: %{version} Release: %{release} License: GPLv3+ Group: System Environment/Base Vendor: Gluster Inc Packager: @PACKAGE_BUGREPORT@ URL: http://www.gluster.org/docs/index.php/GlusterFS Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires(post): /sbin/chkconfig Requires(preun): /sbin/service, /sbin/chkconfig Requires(postun): /sbin/service BuildRequires: bison flex BuildRequires: gcc make automake libtool BuildRequires: ncurses-devel readline-devel openssl-devel BuildRequires: python-ctypes %if 0%{?suse_version} BuildRequires: python-devel %endif Requires: openssl Obsoletes: %{name}-libs <= 2.0.0 Obsoletes: %{name}-common < %{version}-%{release} Obsoletes: %{name}-core < %{version}-%{release} Provides: %{name}-libs = %{version}-%{release} Provides: %{name}-common = %{version}-%{release} Provides: %{name}-core = %{version}-%{release} %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. This package includes the glusterfs binary, the glusterd daemon and the gluster command line, libglusterfs and glusterfs translator modules common to both GlusterFS server and client framework. %if 0%{!?_without_rdma:1} %package rdma Summary: GlusterFS rdma support for ib-verbs Group: Applications/File BuildRequires: libibverbs-devel Requires: %{name} = %{version}-%{release} %description rdma 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 support to ib-verbs library. %endif %if 0%{?_can_georeplicate} %if 0%{!