2011-10-05 21:06:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package glusterfs
|
|
|
|
#
|
2019-12-13 19:58:13 +01:00
|
|
|
# Copyright (c) 2019 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
|
2019-12-13 19:58:13 +01:00
|
|
|
Version: 7.0
|
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
|
|
|
|
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
|
2019-12-13 19:58:13 +01:00
|
|
|
Source: https://download.gluster.org/pub/gluster/glusterfs/7/7.0/glusterfs-7.0.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)
|
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)
|
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.
|
|
|
|
|
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
|
|
|
|
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
|
2019-01-24 00:41:10 +01:00
|
|
|
#%patch -P 2 -p1
|
2017-12-14 21:04:51 +01:00
|
|
|
>contrib/sunrpc/xdr_sizeof.c
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%build
|
2019-04-24 11:07:35 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2017-10-17 14:06:20 +02:00
|
|
|
./autogen.sh
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules
|
2018-05-03 13:55:54 +02:00
|
|
|
make %{?_smp_mflags} V=0
|
2017-12-14 21:04:51 +01:00
|
|
|
find . -name 'xdr_sizeof*' -type f -exec ls -lgo {} + || :
|
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
|
|
|
|
mkdir -p "$b/%_localstatedir/log"/{glusterd,glusterfs,glusterfsd}
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
# The things seemingly forgotten by make install.
|
|
|
|
# - Manually populate devel dirs
|
2018-05-03 13:55:54 +02:00
|
|
|
mkdir -p "$b/%_includedir/%name"
|
|
|
|
install -pm0644 libglusterfs/src/*.h "$b/%_includedir/%name/"
|
2011-10-05 21:06:52 +02:00
|
|
|
# - hekafs wants this:
|
2018-05-03 13:55:54 +02:00
|
|
|
mkdir -p "$b/%_includedir/%name"/{rpc,server}
|
2011-10-05 21:06:52 +02:00
|
|
|
install -pm0644 rpc/rpc-lib/src/*.h rpc/xdr/src/*.h \
|
2018-05-03 13:55:54 +02:00
|
|
|
"$b/%_includedir/%name/rpc/"
|
2011-10-05 21:06:52 +02:00
|
|
|
install -pm0644 xlators/protocol/server/src/*.h \
|
2018-05-03 13:55:54 +02:00
|
|
|
"$b/%_includedir/%name/server/"
|
2011-10-05 21:06:52 +02:00
|
|
|
# - wrapper umount script?
|
|
|
|
# - logrotate entry
|
2018-05-03 13:55:54 +02:00
|
|
|
mkdir -p "$b/%_localstatedir/log/%name"
|
2011-10-05 21:06:52 +02:00
|
|
|
# - vim syntax
|
|
|
|
|
|
|
|
# - state
|
2018-05-03 13:55:54 +02:00
|
|
|
mkdir -p "$b/%_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' \
|
2018-05-03 13:55:54 +02:00
|
|
|
"$b/%_sysconfdir/%name/glusterd.vol"
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
# W: wrong-file-end-of-line-encoding
|
2017-10-17 14:11:03 +02:00
|
|
|
perl -i -pe 's{\x0d\x0a}{\x0a}gs' %_docdir/%name/glusterfs-mode.el
|
2017-10-17 14:06:20 +02:00
|
|
|
|
2018-05-03 13:55:54 +02:00
|
|
|
# E: env-script-interpreter
|
|
|
|
perl -i -pe 's{#!/usr/bin/env python}{#!/usr/bin/python}' \
|
|
|
|
"$b/%_bindir/glusterfind" \
|
|
|
|
"$b/%_sbindirusr/gcron.py" "$b/%_sbindir/snap_scheduler.py" \
|
|
|
|
"$b/%_libexecdir/glusterfs"/*.py "$b/%_libexecdir/glusterfs"/*/*.py \
|
|
|
|
"$b/%_libexecdir/glusterfs/peer_mountbroker" \
|
|
|
|
"$b/%_datadir/glusterfs/scripts"/*.py
|
|
|
|
perl -i -pe 's{#!/usr/bin/env bash}{#!/bin/bash}' \
|
|
|
|
"$b/%_datadir/glusterfs/scripts"/*.sh
|
|
|
|
|
2019-12-13 19:58:13 +01:00
|
|
|
cp -a COPYING-GPLV2 COPYING-LGPLV3 ChangeLog NEWS README.md "$b/%_docdir/%name/"
|
|
|
|
|
2017-10-17 14:11:03 +02:00
|
|
|
mkdir -p "%buildroot/%_unitdir"
|
2017-12-04 15:36:03 +01:00
|
|
|
ln -s service "%buildroot/%_sbindir/rcglusterd"
|
|
|
|
chmod u-s "%buildroot/%_bindir/fusermount-glusterfs"
|
|
|
|
rm -f "%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
|
|
|
|
%post -n libglusterfs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libglusterfs0 -p /sbin/ldconfig
|
2011-10-05 21:06:52 +02:00
|
|
|
|
|
|
|
%files
|
2017-10-17 14:07:48 +02:00
|
|
|
%dir %_sysconfdir/%name
|
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
|
|
|
|
%_libexecdir/%name/
|
|
|
|
%_libdir/%name/
|
|
|
|
%_sbindir/gluster*
|
|
|
|
%_sbindir/glfsheal
|
|
|
|
%_sbindir/rcglusterd
|
|
|
|
%_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
|
2017-10-17 14:07:48 +02:00
|
|
|
%_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
|
|
|
|
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
|
2017-10-17 14:07:48 +02:00
|
|
|
%_includedir/%name
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
2011-12-02 17:08:48 +01:00
|
|
|
|
|
|
|
%changelog
|