27c8b7a369
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
191 lines
6.3 KiB
RPMSpec
191 lines
6.3 KiB
RPMSpec
# if you make changes, the it is advised to increment this number, and provide
|
|
# a descriptive suffix to identify who owns or what the change represents
|
|
# e.g. release_version 2.MSW
|
|
%define release 1%{?dist}
|
|
|
|
# if you wish to compile an rpm without rdma support, compile like this...
|
|
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without rdma
|
|
%{?_without_rdma:%define _without_rdma --disable-ibverbs}
|
|
|
|
# if you wish to compile an rpm without epoll...
|
|
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without epoll
|
|
%{?_without_epoll:%define _without_epoll --disable-epoll}
|
|
|
|
# if you wish to compile an rpm with fusermount...
|
|
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --with fusermount
|
|
%{?_with_fusermount:%define _with_fusermount --enable-fusermount}
|
|
|
|
Summary: Cluster File System
|
|
Name: @PACKAGE_NAME@
|
|
Version: @PACKAGE_VERSION@
|
|
Release: %{release}
|
|
License: AGPLv3+
|
|
Group: System Environment/Base
|
|
Vendor: Gluster Inc
|
|
Packager: @PACKAGE_BUGREPORT@
|
|
URL: http://www.gluster.org/docs/index.php/GlusterFS
|
|
Source0: ftp://ftp.gluster.com/pub/gluster/glusterfs/@PACKAGE_VERSION@/@PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
Requires(post): /sbin/chkconfig
|
|
Requires(preun): /sbin/service, /sbin/chkconfig
|
|
Requires(postun): /sbin/service
|
|
|
|
BuildRequires: bison flex
|
|
BuildRequires: gcc make
|
|
|
|
%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 core
|
|
Summary: GlusterFS common files for both the client and the server
|
|
Group: System Environment/Libraries
|
|
Obsoletes: glusterfs-libs <= 2.0.0 glusterfs-common < 3.1.0 glusterfs-server < 3.1.0
|
|
Provides: glusterfs-libs = %{version}-%{release}
|
|
|
|
%description core
|
|
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
|
|
Group: Applications/File
|
|
BuildRequires: libibverbs-devel
|
|
|
|
%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
|
|
|
|
%package fuse
|
|
Summary: GlusterFS Fuse
|
|
Group: Applications/File
|
|
Obsoletes: glusterfs-client < 3.1.0
|
|
|
|
%description fuse
|
|
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 FUSE based clients.
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
|
|
%configure %{?_without_rdma} %{?_without_epoll} %{?_with_fusermount}
|
|
|
|
# Remove rpath
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%{__rm} -rf %{buildroot}
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
%{__mkdir_p} %{buildroot}%{_includedir}/glusterfs
|
|
%{__mkdir_p} %{buildroot}/var/log/glusterfs
|
|
%{__install} -p -m 0644 libglusterfs/src/*.h \
|
|
%{buildroot}%{_includedir}/glusterfs/
|
|
|
|
# Remove unwanted files from all the shared libraries
|
|
find %{buildroot}%{_libdir} -name '*.la' | xargs rm -f
|
|
find %{buildroot}%{_libdir} -name '*.a' | xargs rm -f
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%post core
|
|
/sbin/ldconfig -n %{_libdir}
|
|
/sbin/chkconfig --add glusterd
|
|
|
|
%postun core
|
|
/sbin/ldconfig -n %{_libdir}
|
|
|
|
%preun core
|
|
if [ $1 -eq 0 ]; then
|
|
/sbin/chkconfig --del glusterd
|
|
fi
|
|
|
|
%files core
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS
|
|
%doc /usr/share/doc/glusterfs
|
|
%if 0%{?_with_fusermount:1}
|
|
%{_bindir}/fusermount-glusterfs
|
|
%endif
|
|
%{_datadir}/glusterfs
|
|
%{_bindir}/glusterfs-volgen
|
|
%{_libdir}/glusterfs
|
|
%{_libdir}/*.so.*
|
|
%{_sbindir}/glusterfs*
|
|
%{_bindir}/glusterfs-defrag
|
|
%{_sbindir}/gluster
|
|
%{_sbindir}/glusterd
|
|
%{_mandir}/man8/*glusterfs.8*
|
|
%{_mandir}/man8/*gluster.8*
|
|
%{_mandir}/man8/*glusterd.8*
|
|
%{_mandir}/man8/*glusterfs-volgen.8*
|
|
%dir /var/log/glusterfs
|
|
%if 0%{!?_without_rdma:1}
|
|
%exclude %{_libdir}/glusterfs/%{version}/rpc-transport/rdma*
|
|
%endif
|
|
%exclude %{_libdir}/glusterfs/%{version}/xlator/mount/fuse*
|
|
%config %{_sysconfdir}/glusterfs
|
|
%{_sysconfdir}/init.d/glusterd
|
|
%{_includedir}/glusterfs
|
|
%exclude %{_includedir}/glusterfs/y.tab.h
|
|
%{_libdir}/*.so
|
|
/sbin/mount.glusterfs
|
|
|
|
%if 0%{!?_without_rdma:1}
|
|
%files rdma
|
|
%defattr(-,root,root)
|
|
%{_libdir}/glusterfs/%{version}/rpc-transport/rdma*
|
|
%endif
|
|
|
|
%files fuse
|
|
%defattr(-,root,root)
|
|
%{_libdir}/glusterfs/%{version}/xlator/mount/fuse*
|
|
|
|
%changelog
|
|
* Wed Jul 01 2009 Harshavardhana <harsha@gluster.com> - 2.1
|
|
- Removed mod_glusterfs.so and added new --without epoll build
|
|
option.
|
|
|
|
* Thu Apr 16 2009 Harshavardhana <harsha@gluster.com> - 2.0
|
|
- Galore of updates including new packages added common,
|
|
client,server splitting the original package. rpmbuild
|
|
fully restructured to adhere to Fedora rpm standards.
|
|
Older changelog removed as there were warnings when
|
|
tried with 'rpmlint'.
|