diff --git a/samba.spec b/samba.spec index 166722a..501d079 100644 --- a/samba.spec +++ b/samba.spec @@ -65,24 +65,27 @@ # Build vfs_ceph module and ctdb cepth mutex helper by default on 64bit Fedora %if 0%{?fedora} -%ifarch aarch64 ppc64le s390x x86_64 riscv64 +%ifarch aarch64 ppc64le s390x x86_64 riscv64 loongarch64 %bcond vfs_cephfs 1 +%bcond vfs_ceph_rgw 1 %bcond ceph_mutex 1 %else %bcond vfs_cephfs 0 +%bcond vfs_ceph_rgw 0 %bcond ceph_mutex 0 #endifarch %endif %else %bcond vfs_cephfs 0 +%bcond vfs_ceph_rgw 0 %bcond ceph_mutex 0 #endif fedora %endif %if 0%{?fedora} -%ifarch aarch64 ppc64le s390x x86_64 riscv64 +%ifarch aarch64 ppc64le s390x x86_64 riscv64 loongarch64 %bcond vfs_glusterfs 1 %else %bcond vfs_glusterfs 0 @@ -93,7 +96,7 @@ %endif # Build vfs_io_uring module by default on 64bit Fedora -%ifarch aarch64 ppc64le s390x x86_64 riscv64 +%ifarch aarch64 ppc64le s390x x86_64 riscv64 loongarch64 %bcond vfs_io_uring 1 %else %bcond vfs_io_uring 0 @@ -125,7 +128,7 @@ %bcond prometheus 0 %endif -%ifarch aarch64 ppc64le s390x x86_64 riscv64 +%ifarch aarch64 ppc64le s390x x86_64 riscv64 loongarch64 %bcond lmdb 1 %else %bcond lmdb 0 @@ -137,7 +140,7 @@ %bcond varlink 0 %endif -%global samba_version 4.24.7 +%global samba_version 4.25.0 # The release field is extended: # [.][.]%%{?dist}[.] @@ -152,7 +155,7 @@ # default is 1). %global samba_release %autorelease -%global pre_release %nil +%global pre_release rc1 %if "x%{?pre_release}" != "x" %global samba_release %autorelease -p -e %pre_release %endif @@ -182,9 +185,9 @@ %global libsmbclient_so_version 0 %global libwbclient_so_version 0 -%global talloc_version 2.4.4 +%global talloc_version 2.5.0 %global tdb_version 1.4.15 -%global tevent_version 0.17.1 +%global tevent_version 0.17.2 %global required_mit_krb5 1.20.1 @@ -365,6 +368,10 @@ BuildRequires: glusterfs-devel >= 3.4.0.16 BuildRequires: libcephfs-devel %endif +%if %{with vfs_ceph_rgw} +BuildRequires: librgw-devel +%endif + %if %{with vfs_io_uring} BuildRequires: liburing-devel >= 0.4 %endif @@ -746,6 +753,22 @@ Samba VFS module for Ceph distributed storage system integration. #endif with vfs_cephfs %endif +%if %{with vfs_ceph_rgw} +%package vfs-ceph-rgw +Summary: Samba VFS module for exporting Ceph-RGW buckets +Requires: %{name} = %{samba_depver} +Requires: %{name}-client-libs = %{samba_depver} +Requires: %{name}-libs = %{samba_depver} +Requires: libldb = %{samba_depver} +Requires: libwbclient = %{samba_depver} + +Provides: bundled(libreplace) = %{samba_depver} + +%description vfs-ceph-rgw +Samba VFS module for exporting Ceph-RGW buckets. +#endif with vfs_ceph_rgw +%endif + ### IOURING %if %{with vfs_io_uring} %package vfs-iouring @@ -1079,9 +1102,6 @@ Requires: %{name}-dcerpc = %{samba_depver} Provides: samba4-winbind = %{samba_depver} Obsoletes: samba4-winbind < %{samba_depver} -# Old NetworkManager expects the dispatcher scripts in a different place -Conflicts: NetworkManager < 1.20 - Provides: bundled(libreplace) = %{samba_depver} %description winbind @@ -1470,10 +1490,14 @@ export PYTHONARCHDIR=%{python3_sitearch} %endif %if %{with varlink} --with-systemd-userdb \ +%endif +%if %{with vfs_ceph_rgw} + --enable-cephrgw \ %endif --with-profiling-data \ --with-systemd \ --with-quotas \ + --with-ratelimitd \ --systemd-install-services \ --with-systemddir=/usr/lib/systemd/system \ --systemd-smb-extra=%{_systemd_extra} \ @@ -1599,6 +1623,10 @@ rm -f %{buildroot}%{_mandir}/man8/vfs_ceph.8* rm -f %{buildroot}%{_mandir}/man8/vfs_ceph_snapshots.8* %endif +%if %{without vfs_ceph_rgw} +rm -f %{buildroot}%{_mandir}/man8/vfs_ceph_rgw.8* +%endif + # This makes the right links, as rpmlint requires that # the ldconfig-created links be recorded in the RPM. /sbin/ldconfig -N -n %{buildroot}%{_libdir} @@ -1634,6 +1662,9 @@ rm -f %{buildroot}%{_mandir}/man3/PyLdb* # CTDB %if %{with clustering} touch %{buildroot}%{_libexecdir}/ctdb/statd_callout + +# Remove symlinks that are marked as %ghost (CTDB will create them at runtime) +rm -f %{buildroot}%{_sysconfdir}/ctdb/statd-callout #endif with clustering %endif @@ -2541,6 +2572,13 @@ fi %{_mandir}/man8/vfs_ceph_snapshots.8* %endif +### VFS-CEPH-RGW +%if %{with vfs_ceph_rgw} +%files vfs-ceph-rgw +%{_libdir}/samba/vfs/ceph_rgw.so +%{_mandir}/man8/vfs_ceph_rgw.8* +%endif + ### VFS-IOURING %if %{with vfs_io_uring} %files vfs-iouring @@ -2760,10 +2798,12 @@ fi %{python3_sitearch}/samba/dcerpc/drsuapi.*.so %{python3_sitearch}/samba/dcerpc/echo.*.so %{python3_sitearch}/samba/dcerpc/epmapper.*.so +%{python3_sitearch}/samba/dcerpc/file_id.*.so %{python3_sitearch}/samba/dcerpc/gkdi.*.so %{python3_sitearch}/samba/dcerpc/gmsa.*.so %{python3_sitearch}/samba/dcerpc/idmap.*.so %{python3_sitearch}/samba/dcerpc/initshutdown.*.so +%{python3_sitearch}/samba/dcerpc/ioctl.*.so %{python3_sitearch}/samba/dcerpc/irpc.*.so %{python3_sitearch}/samba/dcerpc/keycredlink.*.so %{python3_sitearch}/samba/dcerpc/krb5ccache.*.so @@ -3363,8 +3403,10 @@ fi %{python3_sitearch}/samba/tests/__pycache__/net_join_no_spnego.*.pyc %{python3_sitearch}/samba/tests/__pycache__/net_join.*.pyc %{python3_sitearch}/samba/tests/__pycache__/netlogonsvc.*.pyc -%{python3_sitearch}/samba/tests/__pycache__/ntacls.*.pyc +%{python3_sitearch}/samba/tests/__pycache__/nps_echo_test.*.pyc +%{python3_sitearch}/samba/tests/__pycache__/ntacl_resource_attr_ace.*.pyc %{python3_sitearch}/samba/tests/__pycache__/ntacls_backup.*.pyc +%{python3_sitearch}/samba/tests/__pycache__/ntacls.*.pyc %{python3_sitearch}/samba/tests/__pycache__/ntlmdisabled.*.pyc %{python3_sitearch}/samba/tests/__pycache__/ntlm_auth.*.pyc %{python3_sitearch}/samba/tests/__pycache__/ntlm_auth_base.*.pyc @@ -3726,12 +3768,14 @@ fi %{python3_sitearch}/samba/tests/net_join_no_spnego.py %{python3_sitearch}/samba/tests/net_join.py %{python3_sitearch}/samba/tests/netlogonsvc.py +%{python3_sitearch}/samba/tests/nps_echo_test.py %dir %{python3_sitearch}/samba/tests/nss %dir %{python3_sitearch}/samba/tests/nss/__pycache__ %{python3_sitearch}/samba/tests/nss/__pycache__/base.*.pyc %{python3_sitearch}/samba/tests/nss/__pycache__/group.*.pyc %{python3_sitearch}/samba/tests/nss/base.py %{python3_sitearch}/samba/tests/nss/group.py +%{python3_sitearch}/samba/tests/ntacl_resource_attr_ace.py %{python3_sitearch}/samba/tests/ntacls.py %{python3_sitearch}/samba/tests/ntacls_backup.py %{python3_sitearch}/samba/tests/ntlmdisabled.py @@ -4077,6 +4121,7 @@ fi %{_datadir}/ctdb/events/legacy/11.natgw.script %{_datadir}/ctdb/events/legacy/11.routing.script %{_datadir}/ctdb/events/legacy/13.per_ip_routing.script +%{_datadir}/ctdb/events/legacy/15.network.script %{_datadir}/ctdb/events/legacy/20.multipathd.script %{_datadir}/ctdb/events/legacy/31.clamd.script %{_datadir}/ctdb/events/legacy/40.vsftpd.script diff --git a/sources b/sources index 43e8dc5..d203721 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (samba-4.24.7.tar.xz) = dc76aae77de0231894de6a5fa09e0caeb3825affa726784da0da6cf72463986c1761ea0e399897bbd09fecc26fb7839b4b37b8fea7f8c227194471b293e1f85b -SHA512 (samba-4.24.7.tar.asc) = d623f9b549f60c8f93705c4875db4b66f914bba0ce5b0e9f718d623ec206d9c738ad51da012b48cec55281ec180e9fae44dc3eda16455933141767e5309fcc32 +SHA512 (samba-4.25.0rc1.tar.xz) = 34b1a2ebf9b391fa9f03cfc6bb95cfb47237e1c0a677144b6e699420fe27fe22a113783e6bc17244948156091bf1d24debe3b996ff026724f0c2aaf06e2ed736 +SHA512 (samba-4.25.0rc1.tar.asc) = f8ed4617e56f9925c2591ffdf3c0aa010750a08ea216f05414e50c8e90817da49fc4bbf799e64459ea36b57341b566961e7f3434505ce656be39ee9b56ee4709