From d141ce597d480537fcd5935df0414fca0aef0174 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 20 Mar 2024 14:08:24 -0400 Subject: [PATCH] ceph.spec.in: add smb module and python-dataclasses dependency The only distro ceph squid+ is building for at the moment that does not already have a python version that includes dataclasses is centos/rhel 8. Add a dependency for the backport package on rhel8. Signed-off-by: John Mulligan --- ceph.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index b65f6971fbd..653c9297202 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -739,6 +739,11 @@ Requires: python%{python3_pkgversion}-CherryPy Requires: python%{python3_pkgversion}-PyYAML Requires: python%{python3_pkgversion}-Werkzeug %endif +# RHEL8 has python 3.6 and that lacks dataclasses in the stdlib, so pull in the +# backport dataclasses module instead. +%if 0%{?rhel} <= 8 +Requires: python%{python3_pkgversion}-dataclasses +%endif %if 0%{?weak_deps} Recommends: ceph-mgr-rook = %{_epoch_prefix}%{version}-%{release} %endif @@ -1981,6 +1986,7 @@ fi %{_datadir}/ceph/mgr/restful %{_datadir}/ceph/mgr/rgw %{_datadir}/ceph/mgr/selftest +%{_datadir}/ceph/mgr/smb %{_datadir}/ceph/mgr/snap_schedule %{_datadir}/ceph/mgr/stats %{_datadir}/ceph/mgr/status