Compare commits
10 Commits
c481d72374
...
427f8f9bfd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
427f8f9bfd | ||
|
|
98b5ad5a76 | ||
|
|
b440e8aee6 | ||
|
|
8a0b39e06a | ||
|
|
e981916589 | ||
|
|
90cb074656 | ||
|
|
d27052dcbd | ||
|
|
5f918ed382 | ||
|
|
d45212daaa | ||
|
|
07d57f29ac |
@ -3,7 +3,7 @@
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.90
|
||||
Release: 5
|
||||
Release: 10
|
||||
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/dmlc/xgboost
|
||||
@ -14,9 +14,9 @@ Requires: openblas openblas-serial openblas-threads
|
||||
Requires: python3-numpy python3-numpy-f2py python3-scipy
|
||||
Requires: fontconfig fontpackages-filesystem
|
||||
Requires: libX11 libXau libXft libXrender libxcb
|
||||
Requires: openEuler-rpm-config
|
||||
Requires: %{_vendor}-rpm-config
|
||||
Requires: python3-devel python3-rpm-generators tk
|
||||
Patch01: disable-sse-for-riscv.patch
|
||||
Patch01: xgboost-add-sw64-mips64el-loongarch64-riscv64-support.patch
|
||||
|
||||
%global _description \
|
||||
XGBoost is an optimized distributed gradient boosting library designed to be \
|
||||
@ -40,6 +40,7 @@ Summary: %{summary}
|
||||
|
||||
%build
|
||||
pushd %{pypi_name}
|
||||
sed -i "s/(PLUGIN_CFLAGS)/(PLUGIN_CFLAGS) -fPIE -pie/g" Makefile
|
||||
%make_build
|
||||
popd
|
||||
%py3_build
|
||||
@ -60,10 +61,25 @@ find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin
|
||||
%{_bindir}/xgboost
|
||||
/usr/xgboost
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
||||
%{python3_sitearch}/%{pypi_name}/
|
||||
%{python3_sitearch}/%{pypi_name}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Thu Feb 27 2025 zhangshaoning <zhangshaoning@uniontech.com> - 0.90-10
|
||||
- Add sw_64 loongarch64 riscv64 and mips64 support
|
||||
|
||||
* Wed Jun 07 2023 chenchen <chen_aka_jan@163.com> - 0.90-9
|
||||
- add PIE compiler option
|
||||
|
||||
* Sat Mar 04 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.90-8
|
||||
- disable sse for loongarch64
|
||||
|
||||
* Thu Dec 22 2022 wanglin <wangl29@chinatelecom.cn> - 0.90-7
|
||||
- Fix rpm-config hard code problem
|
||||
|
||||
* Mon Jul 25 2022 caodongxia <caodongxia@h-partners.com> - 0.90-6
|
||||
- Use python3_sitearch instead of python3_sitelib
|
||||
|
||||
* Wed May 18 2022 liukuo <liukuo@kylinos.cn> - 0.90-5
|
||||
- License compliance rectification
|
||||
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
--- a/xgboost/make/config.mk 2019-05-21 05:32:11.000000000 +0800
|
||||
+++ b/xgboost/make/config.mk 2022-01-21 17:26:44.096537200 +0800
|
||||
diff -Naur a/xgboost/make/config.mk b/xgboost/make/config.mk
|
||||
--- a/xgboost/make/config.mk 2024-12-10 21:40:12.760506475 +0800
|
||||
+++ b/xgboost/make/config.mk 2024-12-10 21:54:02.450601816 +0800
|
||||
@@ -43,7 +43,7 @@
|
||||
# Settings for power and arm arch
|
||||
#----------------------------
|
||||
ARCH := $(shell uname -a)
|
||||
-ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64))
|
||||
+ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64))
|
||||
+ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64 riscv64 loongarch64 sw_64 mips64))
|
||||
USE_SSE=0
|
||||
else
|
||||
USE_SSE=1
|
||||
Loading…
x
Reference in New Issue
Block a user