mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
rpm: put numpy and scipy deps in distro conditionals
Without this patch, attempts to install the ceph-mgr-diskprediction-local RPM fail on SUSE platforms with the following error: can't install ceph-mgr-diskprediction-local-14.1.0.402+ga396e8bf3b-3742.1.noarch: nothing provides numpy needed by ceph-mgr-diskprediction-local-14.1.0.402+ga396e8bf3b-3742.1.noarch nothing provides scipy needed by ceph-mgr-diskprediction-local-14.1.0.402+ga396e8bf3b-3742.1.noarch Also take into account package naming differences between Fedora and RHEL/CentOS. Signed-off-by: Kefu Chai <kchai@redhat.com> Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
parent
bf23c64eeb
commit
5a0846631c
10
ceph.spec.in
10
ceph.spec.in
@ -493,8 +493,18 @@ BuildArch: noarch
|
||||
Group: System/Filesystems
|
||||
%endif
|
||||
Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release}
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?suse_version}
|
||||
Requires: python%{_python_buildid}-numpy
|
||||
%if 0%{without python2}
|
||||
Requires: python3-scipy
|
||||
%else
|
||||
Requires: python2-scipy
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?rhel} <= 7
|
||||
Requires: numpy
|
||||
Requires: scipy
|
||||
%endif
|
||||
%description mgr-diskprediction-local
|
||||
ceph-mgr-diskprediction-local is a ceph-mgr plugin that tries to predict
|
||||
disk failures using local algorithms and machine-learning databases.
|
||||
|
Loading…
Reference in New Issue
Block a user