From 338f47fe948643babd3ae5e640b28ffb1aa1958e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 25 Jun 2020 18:04:40 +0800 Subject: [PATCH] ceph.spec.in: Requires python3-scikit-learn only on fedora and suse so far, python3-scikit-learn is not packaged by RHEL8/CentOS8 or EPEL8. see https://src.fedoraproject.org/rpms/python-scikit-learn/branches?branchname=master this change should address the regression introduced by d13b441cdb63e37ad3b8ba36cbd3edc33b1e4bbd Signed-off-by: Kefu Chai --- ceph.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 261fded6996..258fb613b0f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -500,7 +500,9 @@ Group: System/Filesystems %endif Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release} Requires: python%{python3_pkgversion}-numpy +%if 0%{?fedora} || 0%{?suse_version} Requires: python%{python3_pkgversion}-scikit-learn +%endif Requires: python3-scipy %description mgr-diskprediction-local ceph-mgr-diskprediction-local is a ceph-mgr module that tries to predict -- 2.39.5