56 lines
1.6 KiB
RPMSpec
56 lines
1.6 KiB
RPMSpec
%global debug_package %{nil}
|
|
|
|
Name: python-scikit-learn
|
|
Summary: A Python module for machine learning built on top of SciPy
|
|
Version: 0.20.4
|
|
Release: 5
|
|
License: BSD
|
|
URL: https://scikit-learn.org/stable/
|
|
Source0: https://github.com/scikit-learn/scikit-learn/archive/%{version}/scikit-learn-%{version}.tar.gz
|
|
Patch3000: backport-CVE-2024-5206.patch
|
|
|
|
%global _description\
|
|
scikit-learn is a Python module for machine learning built on top of SciPy\
|
|
and is distributed under the 3-Clause BSD license.\
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-scikit-learn
|
|
Summary: %summary
|
|
%{?python_provide:%python_provide python3-scikit-learn}
|
|
%{?python_provide:%python_provide python3-sklearn}
|
|
|
|
BuildRequires: python3-devel python3-numpy python3-Cython python3-pytest
|
|
Requires: python3 >= 3.5 python3-numpy >= 1.11.0
|
|
Requires: python3-scipy >= 0.17.0 python3-joblib >= 0.11
|
|
|
|
%description -n python3-scikit-learn %_description
|
|
|
|
%prep
|
|
%autosetup -n scikit-learn-%{version} -p1
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%files -n python3-scikit-learn
|
|
%license COPYING
|
|
%doc examples/ CONTRIBUTING.md README.rst
|
|
%{python3_sitearch}/sklearn
|
|
%{python3_sitearch}/scikit_learn-*.egg-info
|
|
|
|
%changelog
|
|
* Mon Jun 17 2024 yaoxin <yao_xin001@hoperun.com> - 0.20.4-5
|
|
- Fix CVE-2024-5206
|
|
|
|
* Mon Sep 27 2021 lingsheng <lingsheng@huawei.com> - 0.20.4-4
|
|
- Provides python-scikit-learn and python-sklearn for compatibility
|
|
|
|
* Fri Aug 21 2020 shixuantong <shixuantong@huawei.com> - 0.20.4-3
|
|
- add release version for rebuild
|
|
|
|
* Wed Jan 22 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.20.4-2
|
|
- Package init
|