]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: Requires python3-scikit-learn only on fedora and suse
authorKefu Chai <kchai@redhat.com>
Thu, 25 Jun 2020 10:04:40 +0000 (18:04 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Jun 2020 10:19:55 +0000 (18:19 +0800)
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 <kchai@redhat.com>
ceph.spec.in

index 261fded699658d22517b61a527565c8e1856f196..258fb613b0fde28008ad6d064b4cffd0c5774140 100644 (file)
@@ -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