forked from pool/glusterfs
273 lines
8.4 KiB
RPMSpec
273 lines
8.4 KiB
RPMSpec
#
|
|
# spec file for package glusterfs
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: glusterfs
|
|
Version: 11.1
|
|
Release: 0
|
|
Summary: Aggregating distributed file system
|
|
License: GPL-2.0-only OR LGPL-3.0-or-later
|
|
Group: System/Filesystems
|
|
URL: https://www.gluster.org/
|
|
|
|
#Git-Clone: https://github.com/gluster/glusterfs
|
|
#Git-Clone: https://github.com/fvzwieten/lsgvt
|
|
#Changelog: https://docs.gluster.org/en/latest/release-notes/
|
|
Source: https://download.gluster.org/pub/gluster/glusterfs/11/%version/glusterfs-%version.tar.gz
|
|
Patch2: 0001-glusterfs-fix-heap-buffer-overflow-on-startup.patch
|
|
BuildRequires: acl-devel
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: bison
|
|
BuildRequires: fdupes
|
|
BuildRequires: flex
|
|
BuildRequires: libaio-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3
|
|
BuildRequires: readline-devel
|
|
BuildRequires: rpcgen
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: pkgconfig(fuse) >= 2.6.5
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
BuildRequires: pkgconfig(libtirpc)
|
|
BuildRequires: pkgconfig(liburcu)
|
|
%if 0%{?suse_version} >= 1550
|
|
BuildRequires: pkgconfig(liburing) >= 0.3
|
|
%endif
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
BuildRequires: pkgconfig(uuid)
|
|
Requires: libgfapi0 = %version
|
|
Requires: libgfchangelog0 = %version
|
|
Requires: libgfrpc0 = %version
|
|
Requires: libgfxdr0 = %version
|
|
Requires: libglusterfs0 = %version
|
|
%{?systemd_ordering}
|
|
|
|
%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.
|
|
|
|
%package -n libgfapi0
|
|
Summary: GlusterFS API library
|
|
Group: System/Libraries
|
|
|
|
%description -n libgfapi0
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
petabytes.
|
|
|
|
%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
|
|
Summary: GlusterFS Remote Procedure Call library
|
|
Group: System/Libraries
|
|
|
|
%description -n libgfrpc0
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
petabytes.
|
|
|
|
%package -n libgfxdr0
|
|
Summary: GlusterFS's External Data Representation library
|
|
Group: System/Libraries
|
|
|
|
%description -n libgfxdr0
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
petabytes.
|
|
|
|
%package -n libglusterfs0
|
|
Summary: GlusterFS's core library
|
|
Group: System/Libraries
|
|
|
|
%description -n libglusterfs0
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
petabytes.
|
|
|
|
%package -n python3-gluster
|
|
Summary: Python bindings for GlusterFS
|
|
Group: Development/Languages/Python
|
|
BuildArch: noarch
|
|
# Legacy Python 2 bindings are no longer available...
|
|
Obsoletes: python-gluster < 7.0
|
|
|
|
%description -n python3-gluster
|
|
GlusterFS is a clustered file-system capable of scaling to several
|
|
petabytes.
|
|
|
|
%package devel
|
|
Summary: Development files for glusterfs
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %name = %version
|
|
Requires: libacl-devel
|
|
Requires: libgfapi0 = %version
|
|
Requires: libgfchangelog0 = %version
|
|
Requires: libgfrpc0 = %version
|
|
Requires: libgfxdr0 = %version
|
|
Requires: libglusterfs0 = %version
|
|
|
|
%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
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%define _lto_cflags %nil
|
|
./autogen.sh
|
|
%configure \
|
|
--without-tcmalloc \
|
|
--disable-linux-io_uring \
|
|
%if 0%{?suse_version} >= 1550
|
|
--with-mountutildir="%_sbindir" \
|
|
%endif
|
|
--disable-static --with-ipv6-default
|
|
%make_build
|
|
|
|
%install
|
|
b="%buildroot"
|
|
%make_install docdir="%_docdir/%name"
|
|
find "$b" -type f -name "*.la" -delete -print
|
|
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"
|
|
rm -f "%buildroot/etc/bash_completion.d/gluster.bash"
|
|
%fdupes %buildroot/%_prefix
|
|
%python3_fix_shebang
|
|
%if %{suse_version} >= 1600
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/ganesha/*
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/*
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/gfevents/*
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/glusterfind/*
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/python/syncdaemon/*
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/gfind_missing_files/*
|
|
%python3_fix_shebang_path %{buildroot}%{_libexecdir}/glusterfs/scripts/*
|
|
%python3_fix_shebang_path %{buildroot}%{_datadir}/glusterfs/scripts/*
|
|
%endif
|
|
|
|
%pre
|
|
%service_add_pre glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
|
|
|
%post
|
|
%service_add_post glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
|
|
|
%preun
|
|
%service_del_preun glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
|
|
|
%postun
|
|
%service_del_postun glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
|
|
|
|
%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
|
|
|
|
%files
|
|
%license COPYING*
|
|
%dir %_sysconfdir/ganesha
|
|
%dir %_sysconfdir/%name
|
|
%_sysconfdir/ganesha/*.sample
|
|
%config(noreplace) %_sysconfdir/%name/eventsconfig.json
|
|
%config(noreplace) %_sysconfdir/%name/g*lusterd.vol
|
|
%config(noreplace) %_sysconfdir/%name/glusterfs-logrotate
|
|
%config %_sysconfdir/%name/gluster-rsyslog*
|
|
%config %_sysconfdir/%name/glusterfs-georep*
|
|
%config %_sysconfdir/%name/group-*
|
|
%config %_sysconfdir/%name/gsync*
|
|
%config %_sysconfdir/%name/logger*
|
|
%config %_sysconfdir/%name/thin*
|
|
%_bindir/fusermount-glusterfs
|
|
%_bindir/glusterfind
|
|
%_libexecdir/ganesha/
|
|
%_libexecdir/%name/
|
|
%_libdir/%name/
|
|
%_sbindir/gluster*
|
|
%_sbindir/gcron.py
|
|
%_sbindir/gf_attach
|
|
%_sbindir/gfind_missing_files
|
|
%if 0%{?suse_version} >= 1550
|
|
%_sbindir/mount.%name
|
|
%else
|
|
/sbin/mount.%name
|
|
%endif
|
|
%_sbindir/snap_scheduler.py
|
|
%_datadir/glusterfs/
|
|
%_mandir/man*/*
|
|
%_docdir/%name
|
|
%_localstatedir/lib/glusterd
|
|
%_localstatedir/log/%name
|
|
%_unitdir/glusterd.service
|
|
%_unitdir/glustereventsd.service
|
|
%_unitdir/glusterfssharedstorage.service
|
|
%_unitdir/gluster-ta-volume.service
|
|
/usr/lib/ocf
|
|
|
|
%files -n libgfapi0
|
|
%_libdir/libgfapi.so.0*
|
|
|
|
%files -n libgfchangelog0
|
|
%_libdir/libgfchangelog.so.0*
|
|
|
|
%files -n libgfrpc0
|
|
%_libdir/libgfrpc.so.0*
|
|
|
|
%files -n libgfxdr0
|
|
%_libdir/libgfxdr.so.0*
|
|
|
|
%files -n libglusterfs0
|
|
%_libdir/libglusterfs.so.0*
|
|
|
|
%files -n python3-gluster
|
|
%python3_sitelib/gluster/
|
|
|
|
%files devel
|
|
%_includedir/%name/
|
|
%_libdir/*.so
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%changelog
|