|
|
|
@ -57,7 +57,7 @@
|
|
|
|
|
|
|
|
|
|
# ppc64le excluded pending resolution of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104172
|
|
|
|
|
#%%ifarch aarch64 ppc64le s390x x86_64
|
|
|
|
|
%ifarch aarch64 s390x x86_64
|
|
|
|
|
%ifarch aarch64 s390x x86_64 riscv64
|
|
|
|
|
%bcond_without vfs_cephfs
|
|
|
|
|
%bcond_without ceph_mutex
|
|
|
|
|
%else
|
|
|
|
@ -80,7 +80,7 @@
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
|
|
%ifarch aarch64 ppc64le s390x x86_64
|
|
|
|
|
%ifarch aarch64 ppc64le s390x x86_64 riscv64
|
|
|
|
|
%bcond_without vfs_glusterfs
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with vfs_glusterfs
|
|
|
|
@ -109,7 +109,7 @@
|
|
|
|
|
# Build vfs_io_uring module by default on 64bit Fedora
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
|
|
%ifarch aarch64 ppc64le s390x x86_64
|
|
|
|
|
%ifarch aarch64 ppc64le s390x x86_64 riscv64
|
|
|
|
|
%bcond_without vfs_io_uring
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with vfs_io_uring
|
|
|
|
@ -121,9 +121,12 @@
|
|
|
|
|
#endif fedora || rhel >= 8
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Build the ctdb-pcp-pmda package by default on Fedora
|
|
|
|
|
# Build the ctdb-pcp-pmda package by default on Fedora, except for i686 where
|
|
|
|
|
# pcp is no longer supported
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%ifnarch i686
|
|
|
|
|
%bcond_without pcp_pmda
|
|
|
|
|
%endif
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with pcp_pmda
|
|
|
|
|
%endif
|
|
|
|
@ -143,7 +146,7 @@
|
|
|
|
|
|
|
|
|
|
%define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
|
|
|
|
|
|
|
|
|
|
%global samba_version 4.19.2
|
|
|
|
|
%global samba_version 4.19.4
|
|
|
|
|
%global baserelease 2
|
|
|
|
|
# This should be rc1 or %%nil
|
|
|
|
|
%global pre_release %nil
|
|
|
|
@ -194,12 +197,6 @@
|
|
|
|
|
# https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md
|
|
|
|
|
%undefine _strict_symbol_defs_build
|
|
|
|
|
|
|
|
|
|
%global libwbc_alternatives_version 0.16
|
|
|
|
|
%global libwbc_alternatives_suffix %nil
|
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
|
%global libwbc_alternatives_suffix -64
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _systemd_extra "Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba"
|
|
|
|
|
|
|
|
|
|
# Make a copy of this variable to prevent repeated evaluation of the
|
|
|
|
@ -208,7 +205,7 @@
|
|
|
|
|
|
|
|
|
|
Name: samba
|
|
|
|
|
Version: %{samba_version}
|
|
|
|
|
Release: %{samba_release}%{?dist}
|
|
|
|
|
Release: %{samba_release}.0.riscv64%{?dist}
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
Epoch: 2
|
|
|
|
@ -236,12 +233,11 @@ Source14: samba.pamd
|
|
|
|
|
Source15: usershares.conf.vendor
|
|
|
|
|
Source16: samba-systemd-sysusers.conf
|
|
|
|
|
Source17: samba-usershares-systemd-sysusers.conf
|
|
|
|
|
Source18: samba-winbind-systemd-sysusers.conf
|
|
|
|
|
|
|
|
|
|
Source201: README.downgrade
|
|
|
|
|
Source202: samba.abignore
|
|
|
|
|
|
|
|
|
|
Requires(pre): /usr/sbin/groupadd
|
|
|
|
|
|
|
|
|
|
Requires(pre): %{name}-common = %{samba_depver}
|
|
|
|
|
Requires: %{name}-common = %{samba_depver}
|
|
|
|
|
Requires: %{name}-common-libs = %{samba_depver}
|
|
|
|
@ -336,7 +332,7 @@ BuildRequires: zlib-devel >= 1.2.3
|
|
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
|
|
|
|
|
|
%ifnarch i686
|
|
|
|
|
%ifnarch i686 riscv64
|
|
|
|
|
%if 0%{?fedora} >= 37
|
|
|
|
|
BuildRequires: mold
|
|
|
|
|
%endif
|
|
|
|
@ -365,6 +361,10 @@ BuildRequires: librados-devel
|
|
|
|
|
BuildRequires: python3-etcd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with gpupdate}
|
|
|
|
|
BuildRequires: cepces
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# pidl requirements
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
@ -733,9 +733,12 @@ Samba VFS module for GlusterFS integration.
|
|
|
|
|
%package gpupdate
|
|
|
|
|
Summary: Samba GPO support for clients
|
|
|
|
|
Requires: cepces
|
|
|
|
|
Requires: cepces-certmonger
|
|
|
|
|
Requires: certmonger
|
|
|
|
|
Requires: %{name}-ldb-ldap-modules = %{samba_depver}
|
|
|
|
|
Requires: python3-%{name} = %{samba_depver}
|
|
|
|
|
# samba-tool needs python3-samba-dc also on non-dc build
|
|
|
|
|
Requires: python3-%{name}-dc = %{samba_depver}
|
|
|
|
|
|
|
|
|
|
%description gpupdate
|
|
|
|
|
This package provides the samba-gpupdate tool to apply Group Policy Objects
|
|
|
|
@ -1272,7 +1275,7 @@ export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
|
|
|
|
|
# Use the mold linker if possible
|
|
|
|
|
export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
|
|
|
|
|
|
|
|
|
|
%ifnarch i686
|
|
|
|
|
%ifnarch i686 riscv64
|
|
|
|
|
%if 0%{?fedora} >= 37
|
|
|
|
|
export LDFLAGS="%{__global_ldflags} -fuse-ld=mold"
|
|
|
|
|
export python_LDFLAGS="$(echo ${LDFLAGS} | sed -e 's/-Wl,-z,defs//g')"
|
|
|
|
@ -1409,6 +1412,7 @@ echo "d /run/ctdb 755 root root" > %{buildroot}%{_tmpfilesdir}/ctdb.conf
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysusersdir}
|
|
|
|
|
install -m 0644 %{SOURCE16} %{buildroot}%{_sysusersdir}/samba.conf
|
|
|
|
|
install -m 0644 %{SOURCE17} %{buildroot}%{_sysusersdir}/samba-usershares.conf
|
|
|
|
|
install -m 0644 %{SOURCE18} %{buildroot}%{_sysusersdir}/samba-winbind.conf
|
|
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
|
|
install -m 0644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/samba
|
|
|
|
@ -1443,8 +1447,8 @@ done
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without gpupdate}
|
|
|
|
|
rm -f %{_sbindir}/samba-gpupdate
|
|
|
|
|
rm -f %{_mandir}/man8/samba-gpupdate.8
|
|
|
|
|
rm -f %{buildroot}%{_sbindir}/samba-gpupdate
|
|
|
|
|
rm -f %{buildroot}%{_mandir}/man8/samba-gpupdate.8*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{without vfs_glusterfs}
|
|
|
|
@ -1523,11 +1527,8 @@ export WINBINDD_DONT_LOG_STDOUT=1
|
|
|
|
|
%systemd_postun_with_restart nmb.service
|
|
|
|
|
|
|
|
|
|
%pre common
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 8
|
|
|
|
|
# This creates the group 'printadmin'
|
|
|
|
|
%sysusers_create_compat %{SOURCE16}
|
|
|
|
|
%else
|
|
|
|
|
getent group printadmin >/dev/null || groupadd -r printadmin || :
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%post common
|
|
|
|
|
%{?ldconfig}
|
|
|
|
@ -1597,14 +1598,12 @@ fi
|
|
|
|
|
%ldconfig_scriptlets test
|
|
|
|
|
|
|
|
|
|
%pre usershares
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 8
|
|
|
|
|
# This creates the group 'usershares'
|
|
|
|
|
%sysusers_create_compat %{SOURCE17}
|
|
|
|
|
%else
|
|
|
|
|
getent group usershares >/dev/null || groupadd -r usershares || :
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%pre winbind
|
|
|
|
|
/usr/sbin/groupadd -g 88 wbpriv >/dev/null 2>&1 || :
|
|
|
|
|
# This creates the group 'wbpriv'
|
|
|
|
|
%sysusers_create_compat %{SOURCE18}
|
|
|
|
|
|
|
|
|
|
%post winbind
|
|
|
|
|
%systemd_post winbind.service
|
|
|
|
@ -3480,6 +3479,7 @@ fi
|
|
|
|
|
%{_libdir}/samba/libnss-info-samba4.so
|
|
|
|
|
%{_libdir}/samba/libidmap-samba4.so
|
|
|
|
|
%{_sbindir}/winbindd
|
|
|
|
|
%{_sysusersdir}/samba-winbind.conf
|
|
|
|
|
%attr(750,root,wbpriv) %dir /var/lib/samba/winbindd_privileged
|
|
|
|
|
%{_unitdir}/winbind.service
|
|
|
|
|
%{_prefix}/lib/NetworkManager
|
|
|
|
@ -4468,6 +4468,22 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jan 11 2024 David Abdurachmanov <davidlt@rivosinc.com> - 4.19.4-2.0.riscv64
|
|
|
|
|
- Add support for riscv64
|
|
|
|
|
- Disable Mold linker on riscv64
|
|
|
|
|
|
|
|
|
|
* Tue Jan 09 2024 Andreas Schneider <asn@redhat.com> - 4.19.4-2
|
|
|
|
|
- resolves: rhbz#2256326 - Create all groups using systemd
|
|
|
|
|
|
|
|
|
|
* Mon Jan 08 2024 Guenther Deschner <gdeschner@redhat.com> - 4.19.4-1
|
|
|
|
|
- resolves: #2257287 - Update to version 4.19.4
|
|
|
|
|
|
|
|
|
|
* Tue Nov 28 2023 Guenther Deschner <gdeschner@redhat.com> - 4.19.3-2
|
|
|
|
|
- Disable performance co-pilot support for i686
|
|
|
|
|
|
|
|
|
|
* Mon Nov 27 2023 Guenther Deschner <gdeschner@redhat.com> - 4.19.3-1
|
|
|
|
|
- resolves: #2251766 - Update to version 4.19.3
|
|
|
|
|
|
|
|
|
|
* Wed Nov 15 2023 Andreas Schneider <asn@redhat.com> - 4.19.2-2
|
|
|
|
|
- Package samba-gpupdate also for RHEL9
|
|
|
|
|
|
|
|
|
|