2011-10-05 21:06:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package glusterfs
|
|
|
|
#
|
2021-04-30 00:34:26 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2019-01-24 00:41:10 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-05 21:06:52 +02:00
|
|
|
#
|
|
|
|
|
2012-09-24 05:44:14 +02:00
|
|
|
|
2011-12-02 17:08:48 +01:00
|
|
|
Name: glusterfs
|
2021-04-30 00:34:26 +02:00
|
|
|
Version: 9.1
|
2011-12-02 17:08:48 +01:00
|
|
|
Release: 0
|
2012-09-24 05:44:14 +02:00
|
|
|
Summary: Aggregating distributed file system
|
2018-05-03 13:55:54 +02:00
|
|
|
License: GPL-2.0-only OR LGPL-3.0-or-later
|
2012-09-24 05:44:14 +02:00
|
|
|
Group: System/Filesystems
|
2019-12-13 19:58:13 +01:00
|
|
|
URL: http://www.gluster.org/
|
2018-05-03 13:55:54 +02:00
|
|
|
|
2020-01-09 17:42:17 +01:00
|
|
|
#Git-Clone: https://github.com/gluster/glusterfs
|
|
|
|
#Git-Clone: https://github.com/fvzwieten/lsgvt
|
2021-04-30 00:34:26 +02:00
|
|
|
Source: https://download.gluster.org/pub/gluster/glusterfs/9/9.1/glusterfs-9.1.tar.gz
|
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
|
2019-12-13 19:58:13 +01:00
|
|
|
BuildRequires: python3
|
2011-12-02 17:08:48 +01:00
|
|
|
BuildRequires: readline-devel
|
2017-11-14 16:36:38 +01:00
|
|
|
BuildRequires: rpcgen
|
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-11-14 16:36:38 +01:00
|
|
|
BuildRequires: pkgconfig(libtirpc)
|
2017-10-17 14:06:20 +02:00
|
|
|
BuildRequires: pkgconfig(liburcu)
|
2021-04-30 00:45:00 +02:00
|
|
|
BuildRequires: pkgconfig(liburing) >= 0.3
|
2012-09-24 05:44:14 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2019-12-13 19:58:13 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2017-10-17 14:06:20 +02:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2012-09-24 05:44:14 +02:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
2021-04-30 00:34:26 +02:00
|
|
|
%{?systemd_ordering}
|
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.
|
|
|
|
|
2021-04-30 00:34:26 +02:00
|
|
|
%package -n libglusterd0
|
|
|
|
Summary: GlusterFS core daemon library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libglusterd0
|
|
|
|
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.
|
|
|
|
|
2019-12-27 17:57:35 +01:00
|
|
|
%package -n python3-gluster
|
2017-10-17 14:10:04 +02:00
|
|
|
Summary: Python bindings for GlusterFS
|
|
|
|
Group: Development/Languages/Python
|
2019-12-27 17:57:35 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
# Legacy Python 2 bindings are no longer available...
|
|
|
|
Obsoletes: python-gluster < 7.0
|
2017-10-17 14:06:20 +02:00
|
|
|
|
2019-12-27 17:57:35 +01:00
|
|
|
%description -n python3-gluster
|
2017-10-17 14:06:20 +02:00
|
|
|
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
|
2017-10-18 14:55:12 +02:00
|
|
|
Requires: libacl-devel
|
2017-10-17 14:07:48 +02:00
|
|
|
Requires: libgfapi0 = %version
|
|
|
|
Requires: libgfchangelog0 = %version
|
|
|
|
Requires: libgfrpc0 = %version
|
|
|
|
Requires: libgfxdr0 = %version
|
2021-04-30 00:34:26 +02:00
|
|
|
Requires: libglusterd0 = %version
|
2017-10-17 14:07:48 +02:00
|
|
|
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
|
2020-01-09 17:42:17 +01:00
|
|
|
%autosetup -p1
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%build
|
2020-01-09 17:42:17 +01:00
|
|
|
%define _lto_cflags %nil
|
2017-10-17 14:06:20 +02:00
|
|
|
./autogen.sh
|
2021-04-30 07:56:23 +02:00
|
|
|
%configure --disable-static --with-ipv6-default
|
2021-04-30 00:34:26 +02:00
|
|
|
%make_build
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%install
|
2018-05-03 13:55:54 +02:00
|
|
|
b="%buildroot"
|
2017-10-17 14:07:48 +02:00
|
|
|
%make_install docdir="%_docdir/%name"
|
2018-05-03 13:55:54 +02:00
|
|
|
find "$b" -type f -name "*.la" -delete -print
|
2021-04-30 00:34:26 +02:00
|
|
|
mkdir -pv "$b/%_localstatedir/log"/{glusterd,glusterfs,glusterfsd}
|
|
|
|
cp -av ChangeLog NEWS README.md "$b/%_docdir/%name/"
|
|
|
|
|
|
|
|
chmod -v u-s "%buildroot/%_bindir/fusermount-glusterfs"
|
|
|
|
rm -fv "%buildroot/%_sbindir/conf.py"
|
2017-10-17 14:07:48 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
2017-10-17 14:06:20 +02:00
|
|
|
|
2012-11-15 01:51:48 +01:00
|
|
|
%pre
|
2019-12-13 19:58:13 +01:00
|
|
|
%service_add_pre glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
2012-11-15 01:51:48 +01:00
|
|
|
|
2011-10-05 21:06:52 +02:00
|
|
|
%post
|
2019-12-13 19:58:13 +01:00
|
|
|
%service_add_post glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%preun
|
2019-12-13 19:58:13 +01:00
|
|
|
%service_del_preun glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%postun
|
2019-12-13 19:58:13 +01:00
|
|
|
%service_del_postun glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.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
|
2021-04-30 00:34:26 +02:00
|
|
|
%post -n libglusterd0 -p /sbin/ldconfig
|
|
|
|
%postun -n libglusterd0 -p /sbin/ldconfig
|
2014-05-06 00:58:53 +02:00
|
|
|
%post -n libglusterfs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libglusterfs0 -p /sbin/ldconfig
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%files
|
2021-04-30 00:34:26 +02:00
|
|
|
%license COPYING*
|
|
|
|
%dir %_sysconfdir/ganesha
|
2017-10-17 14:07:48 +02:00
|
|
|
%dir %_sysconfdir/%name
|
2021-04-30 00:34:26 +02:00
|
|
|
%_sysconfdir/ganesha/*.sample
|
2017-12-04 15:36:03 +01:00
|
|
|
%config(noreplace) %_sysconfdir/%name/eventsconfig.json
|
|
|
|
%config(noreplace) %_sysconfdir/%name/g*lusterd.vol
|
2017-10-17 14:07:48 +02:00
|
|
|
%config(noreplace) %_sysconfdir/%name/glusterfs-logrotate
|
2019-12-13 19:58:13 +01:00
|
|
|
%config %_sysconfdir/%name/gluster-rsyslog*
|
|
|
|
%config %_sysconfdir/%name/glusterfs-georep*
|
2017-12-04 15:36:03 +01:00
|
|
|
%config %_sysconfdir/%name/group-*
|
2019-12-13 19:58:13 +01:00
|
|
|
%config %_sysconfdir/%name/gsync*
|
|
|
|
%config %_sysconfdir/%name/logger*
|
|
|
|
%config %_sysconfdir/%name/thin*
|
2017-10-17 14:07:48 +02:00
|
|
|
%_bindir/fusermount-glusterfs
|
|
|
|
%_bindir/glusterfind
|
|
|
|
/sbin/mount.%name
|
2021-04-30 00:34:26 +02:00
|
|
|
%_libexecdir/ganesha/
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libexecdir/%name/
|
|
|
|
%_libdir/%name/
|
|
|
|
%_sbindir/gluster*
|
|
|
|
%_sbindir/gcron.py
|
2017-12-04 15:36:03 +01:00
|
|
|
%_sbindir/gf_attach
|
2017-10-17 14:07:48 +02:00
|
|
|
%_sbindir/gfind_missing_files
|
|
|
|
%_sbindir/snap_scheduler.py
|
|
|
|
%_datadir/glusterfs/
|
|
|
|
%_mandir/man*/*
|
|
|
|
%_docdir/%name
|
|
|
|
%_localstatedir/lib/glusterd
|
|
|
|
%_localstatedir/log/%name
|
|
|
|
%_unitdir/glusterd.service
|
2017-12-04 15:36:03 +01:00
|
|
|
%_unitdir/glustereventsd.service
|
|
|
|
%_unitdir/glusterfssharedstorage.service
|
2019-12-13 19:58:13 +01:00
|
|
|
%_unitdir/gluster-ta-volume.service
|
2020-06-05 13:32:16 +02:00
|
|
|
/usr/lib/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
|
|
|
|
2021-04-30 00:34:26 +02:00
|
|
|
%files -n libglusterd0
|
|
|
|
%_libdir/libglusterd.so.0*
|
|
|
|
|
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
|
|
|
|
2019-12-27 17:57:35 +01:00
|
|
|
%files -n python3-gluster
|
2019-12-13 19:58:13 +01:00
|
|
|
%python3_sitelib/gluster/
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%files devel
|
2021-04-30 00:34:26 +02:00
|
|
|
%_includedir/%name/
|
2017-10-17 14:07:48 +02:00
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
2011-12-02 17:08:48 +01:00
|
|
|
|
|
|
|
%changelog
|