2011-10-05 21:06:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package glusterfs
|
|
|
|
#
|
2017-10-17 14:06:20 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-10-05 21:06:52 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-09-24 05:44:14 +02:00
|
|
|
|
2011-12-02 17:08:48 +01:00
|
|
|
Name: glusterfs
|
2017-10-17 14:06:20 +02:00
|
|
|
Version: 3.8.15
|
2011-12-02 17:08:48 +01:00
|
|
|
Release: 0
|
2012-09-24 05:44:14 +02:00
|
|
|
Summary: Aggregating distributed file system
|
2017-10-17 14:06:20 +02:00
|
|
|
License: GPL-2.0 OR LGPL-3.0+
|
2012-09-24 05:44:14 +02:00
|
|
|
Group: System/Filesystems
|
2015-08-04 21:40:49 +02:00
|
|
|
Url: http://www.gluster.org/
|
2012-09-24 05:44:14 +02:00
|
|
|
#Git-Clone: git://github.com/gluster/glusterfs
|
2013-02-28 23:06:56 +01:00
|
|
|
#Git-Clone: git://github.com/fvzwieten/lsgvt
|
2017-10-17 14:07:48 +02:00
|
|
|
Source: http://download.gluster.org/pub/gluster/glusterfs/3.8/%version/%name-%version.tar.gz
|
2012-10-31 13:27:28 +01:00
|
|
|
Patch1: glusterfs-date.diff
|
2017-10-17 14:06:20 +02:00
|
|
|
BuildRequires: acl-devel
|
2014-05-06 00:58:53 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2011-12-02 17:08:48 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
2013-02-28 23:10:37 +01:00
|
|
|
BuildRequires: libaio-devel
|
2014-05-06 00:58:53 +02:00
|
|
|
BuildRequires: libtool
|
2011-12-02 17:08:48 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: readline-devel
|
2017-10-17 14:06:20 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2012-09-24 05:50:12 +02:00
|
|
|
BuildRequires: pkgconfig(fuse) >= 2.6.5
|
|
|
|
BuildRequires: pkgconfig(libcrypto)
|
2017-10-17 14:06:20 +02:00
|
|
|
BuildRequires: pkgconfig(liburcu)
|
2012-09-24 05:44:14 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2017-10-17 14:06:20 +02:00
|
|
|
BuildRequires: pkgconfig(python)
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2012-09-24 05:44:14 +02:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
2017-10-17 14:06:20 +02:00
|
|
|
%{?systemd_requires}
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes. 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 systems 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
|
|
|
|
user space and easily manageable.
|
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%package -n libgfapi0
|
2012-11-10 01:17:35 +01:00
|
|
|
Summary: GlusterFS API library
|
2012-10-31 13:27:28 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%description -n libgfapi0
|
2012-10-31 13:27:28 +01:00
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%package -n libgfchangelog0
|
|
|
|
Summary: GlusterFS volume changelog translator library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libgfchangelog0
|
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
|
|
|
The goal of this volume translator is to capture changes performed on
|
|
|
|
a GlusterFS volume. The translator needs to be loaded on the server
|
|
|
|
(bricks) and captures changes in a plain text file inside a
|
|
|
|
configured directory path (controlled by the "changelog-dir"
|
|
|
|
directive).
|
|
|
|
|
|
|
|
%package -n libgfrpc0
|
2012-09-24 05:44:14 +02:00
|
|
|
Summary: GlusterFS Remote Procedure Call library
|
|
|
|
Group: System/Libraries
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%description -n libgfrpc0
|
2011-10-05 21:06:52 +02:00
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%package -n libgfxdr0
|
2012-09-24 05:44:14 +02:00
|
|
|
Summary: GlusterFS's External Data Representation library
|
|
|
|
Group: System/Libraries
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%description -n libgfxdr0
|
2011-10-05 21:06:52 +02:00
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%package -n libglusterfs0
|
2012-09-24 05:44:14 +02:00
|
|
|
Summary: GlusterFS's core library
|
|
|
|
Group: System/Libraries
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%description -n libglusterfs0
|
2011-10-05 21:06:52 +02:00
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
2017-10-17 14:06:20 +02:00
|
|
|
%package -n libgfdb0
|
|
|
|
Summary: GlusterFS's database library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libgfdb0
|
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
|
|
|
%package -n python-gluster
|
|
|
|
Summary: GlusterFS python library
|
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n python-gluster
|
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
|
|
|
%package ganesha
|
|
|
|
Summary: NFS-Ganesha configuration
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description ganesha
|
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
2011-10-05 21:06:52 +02:00
|
|
|
%package devel
|
2012-09-24 05:44:14 +02:00
|
|
|
Summary: Development files for glusterfs
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-10-17 14:07:48 +02:00
|
|
|
Requires: %name = %version
|
|
|
|
Requires: libgfapi0 = %version
|
|
|
|
Requires: libgfchangelog0 = %version
|
|
|
|
Requires: libgfrpc0 = %version
|
|
|
|
Requires: libgfxdr0 = %version
|
|
|
|
Requires: libglusterfs0 = %version
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
|
|
petabytes.
|
|
|
|
|
|
|
|
This package provides development files such as headers and library
|
|
|
|
links.
|
|
|
|
|
|
|
|
%prep
|
2014-05-06 00:58:53 +02:00
|
|
|
%setup -q
|
2017-10-17 14:06:20 +02:00
|
|
|
%patch1 -p1
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%build
|
2017-10-17 14:06:20 +02:00
|
|
|
./autogen.sh
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules
|
|
|
|
make %{?_smp_mflags}
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%install
|
2017-10-17 14:07:48 +02:00
|
|
|
%make_install docdir="%_docdir/%name"
|
|
|
|
find %buildroot -type f -name "*.la" -delete -print
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_localstatedir/log"/{glusterd,glusterfs,glusterfsd};
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
# The things seemingly forgotten by make install.
|
|
|
|
# - Manually populate devel dirs
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_includedir/%name";
|
|
|
|
install -pm0644 libglusterfs/src/*.h "%buildroot%_includedir/%name/";
|
2011-10-05 21:06:52 +02:00
|
|
|
# - hekafs wants this:
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_includedir/%name"/{rpc,server};
|
2011-10-05 21:06:52 +02:00
|
|
|
install -pm0644 rpc/rpc-lib/src/*.h rpc/xdr/src/*.h \
|
2017-10-17 14:07:48 +02:00
|
|
|
"%buildroot%_includedir/%name/rpc/";
|
2011-10-05 21:06:52 +02:00
|
|
|
install -pm0644 xlators/protocol/server/src/*.h \
|
2017-10-17 14:07:48 +02:00
|
|
|
"%buildroot%_includedir/%name/server/";
|
2011-10-05 21:06:52 +02:00
|
|
|
# - init script; there is no SuSE-release in the build env
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_initddir";
|
|
|
|
install -pm0755 extras/init.d/glusterd-SuSE "%buildroot%_initddir/glusterd";
|
2011-10-05 21:06:52 +02:00
|
|
|
# - wrapper umount script?
|
|
|
|
# - logrotate entry
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_localstatedir/log/%name";
|
2011-10-05 21:06:52 +02:00
|
|
|
# - vim syntax
|
|
|
|
|
|
|
|
# - state
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_localstatedir/lib/glusterd";
|
2011-10-05 21:06:52 +02:00
|
|
|
perl -i -pe \
|
2017-10-17 14:07:48 +02:00
|
|
|
's{^(\s*option working-directory )\S+}{$1 %_localstatedir/lib/glusterd}g' \
|
|
|
|
"%buildroot%_sysconfdir/%name/glusterd.vol";
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
# Clean, but must NOT remove .la from dirs not searched by
|
|
|
|
# default, thus maxdepth.
|
2017-10-17 14:07:48 +02:00
|
|
|
find %buildroot -type f -name "*.la" -delete -print
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
# W: wrong-file-end-of-line-encoding
|
2017-10-17 14:07:48 +02:00
|
|
|
perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el;
|
2017-10-17 14:06:20 +02:00
|
|
|
|
2017-10-17 14:07:48 +02:00
|
|
|
mkdir -p "%buildroot%_unitdir";
|
|
|
|
rm -Rf "%buildroot%_initddir"
|
|
|
|
ln -s service "%buildroot%_sbindir/rcglusterd"
|
|
|
|
chmod u-s "%buildroot%_bindir/fusermount-glusterfs"
|
|
|
|
%fdupes %buildroot/%_prefix
|
2017-10-17 14:06:20 +02:00
|
|
|
|
2012-11-15 01:51:48 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre glusterd.service
|
|
|
|
|
2011-10-05 21:06:52 +02:00
|
|
|
%post
|
2012-11-15 01:51:48 +01:00
|
|
|
%service_add_post glusterd.service
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%preun
|
2012-11-15 01:51:48 +01:00
|
|
|
%service_del_preun glusterd.service
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%postun
|
2012-11-15 01:51:48 +01:00
|
|
|
%service_del_postun glusterd.service
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%post -n libgfapi0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgfapi0 -p /sbin/ldconfig
|
|
|
|
%post -n libgfchangelog0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgfchangelog0 -p /sbin/ldconfig
|
|
|
|
%post -n libgfrpc0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgfrpc0 -p /sbin/ldconfig
|
|
|
|
%post -n libgfxdr0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgfxdr0 -p /sbin/ldconfig
|
|
|
|
%post -n libglusterfs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libglusterfs0 -p /sbin/ldconfig
|
2017-10-17 14:06:20 +02:00
|
|
|
%post -n libgfdb0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgfdb0 -p /sbin/ldconfig
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%files
|
2017-10-17 14:06:20 +02:00
|
|
|
%doc COPYING-GPLV2 COPYING-LGPLV3 ChangeLog NEWS README.md
|
2017-10-17 14:07:48 +02:00
|
|
|
%dir %_sysconfdir/%name
|
|
|
|
%config(noreplace) %_sysconfdir/%name/glusterd.vol
|
|
|
|
%config(noreplace) %_sysconfdir/%name/glusterfs-logrotate
|
|
|
|
%config %_sysconfdir/%name/gluster-rsyslog*.conf
|
|
|
|
%config %_sysconfdir/%name/*.example
|
|
|
|
%config %_sysconfdir/%name/*-logrotate
|
|
|
|
%_bindir/fusermount-glusterfs
|
|
|
|
%_bindir/glusterfind
|
|
|
|
/sbin/mount.%name
|
|
|
|
%_libexecdir/%name/
|
|
|
|
%_libdir/%name/
|
|
|
|
%_sbindir/gluster*
|
|
|
|
%_sbindir/glfsheal
|
|
|
|
%_sbindir/rcglusterd
|
|
|
|
%_sbindir/gcron.py
|
|
|
|
%_sbindir/gfind_missing_files
|
|
|
|
%_sbindir/snap_scheduler.py
|
|
|
|
%_datadir/glusterfs/
|
|
|
|
%_mandir/man*/*
|
|
|
|
%_docdir/%name
|
|
|
|
%_localstatedir/lib/glusterd
|
|
|
|
%_localstatedir/log/%name
|
|
|
|
%_unitdir/glusterd.service
|
|
|
|
%_libexecdir/ocf
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%files -n libgfapi0
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/libgfapi.so.0*
|
2012-10-31 13:27:28 +01:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%files -n libgfchangelog0
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/libgfchangelog.so.0*
|
2014-05-06 00:58:53 +02:00
|
|
|
|
|
|
|
%files -n libgfrpc0
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/libgfrpc.so.0*
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%files -n libgfxdr0
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/libgfxdr.so.0*
|
2011-10-05 21:06:52 +02:00
|
|
|
|
2014-05-06 00:58:53 +02:00
|
|
|
%files -n libglusterfs0
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/libglusterfs.so.0*
|
2017-10-17 14:06:20 +02:00
|
|
|
|
|
|
|
%files -n libgfdb0
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/libgfdb.so.0*
|
2017-10-17 14:06:20 +02:00
|
|
|
|
|
|
|
%files ganesha
|
2017-10-17 14:07:48 +02:00
|
|
|
%dir %_sysconfdir/ganesha
|
|
|
|
%dir %_libexecdir/ganesha
|
|
|
|
%_sysconfdir/ganesha/ganesha-ha.conf.sample
|
|
|
|
%_libexecdir/ganesha/copy-export-ganesha.sh
|
|
|
|
%_libexecdir/ganesha/create-export-ganesha.sh
|
|
|
|
%_libexecdir/ganesha/dbus-send.sh
|
|
|
|
%_libexecdir/ganesha/ganesha-ha.sh
|
|
|
|
%_libexecdir/ganesha/generate-epoch.py
|
2017-10-17 14:06:20 +02:00
|
|
|
|
|
|
|
%files -n python-gluster
|
2017-10-17 14:07:48 +02:00
|
|
|
%dir %python_sitelib/gluster
|
|
|
|
%dir %python_sitelib/gluster/glupy
|
|
|
|
%python_sitelib/gluster/__init__.*
|
|
|
|
%python_sitelib/gluster/glupy/__init__.*
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%files devel
|
2017-10-17 14:07:48 +02:00
|
|
|
%_includedir/%name
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
2011-12-02 17:08:48 +01:00
|
|
|
|
|
|
|
%changelog
|