Compare commits
10 Commits
53b59d1074
...
0793b831c1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0793b831c1 | ||
|
|
171c8fc1ce | ||
|
|
f44aee5921 | ||
|
|
9b116ec0c5 | ||
|
|
95fbabfd97 | ||
|
|
dd39471e34 | ||
|
|
16c33f793b | ||
|
|
5a10b47524 | ||
|
|
415512ee45 | ||
|
|
d107132f31 |
11
disable-sse-for-riscv.patch
Normal file
11
disable-sse-for-riscv.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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
|
||||
@@ -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))
|
||||
USE_SSE=0
|
||||
else
|
||||
USE_SSE=1
|
||||
@ -1,21 +1,23 @@
|
||||
%global pypi_name xgboost
|
||||
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
||||
%define _debugsource_template %{nil}
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.90
|
||||
Release: 2
|
||||
Release: 6
|
||||
Summary: Scalable, Portable and Distributed Gradient Boosting Library
|
||||
License: Apache-2
|
||||
URL: https://github.com/dmlc/xgboost
|
||||
Source0: https://files.pythonhosted.org/packages/96/84/4e2cae6247f397f83d8adc5c2a2a0c5d7d790a14a4c7400ff6574586f589/%{pypi_name}-%{version}.tar.gz
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-devel gcc-c++
|
||||
Requires: dejavu-fonts-common dejavu-sans-fonts libgfortran
|
||||
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
|
||||
|
||||
%global _description \
|
||||
XGBoost is an optimized distributed gradient boosting library designed to be \
|
||||
@ -35,10 +37,11 @@ Summary: %{summary}
|
||||
%description -n python3-%{pypi_name} %{_description}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
%autosetup -n %{pypi_name}-%{version} -p1
|
||||
|
||||
%build
|
||||
pushd %{pypi_name}
|
||||
sed -i "s/(PLUGIN_CFLAGS)/(PLUGIN_CFLAGS) -fPIE -pie/g" Makefile
|
||||
%make_build
|
||||
popd
|
||||
%py3_build
|
||||
@ -63,6 +66,18 @@ find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin
|
||||
%{python3_sitelib}/%{pypi_name}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Tue Jun 06 2023 chenchen <chen_aka_jan@163.com> - 0.90-6
|
||||
- add PIE compiler option
|
||||
|
||||
* Thu Nov 17 2022 caodongxia <caodongxia@h-partners.com> - 0.90-5
|
||||
- Replace openEuler with vendor macro
|
||||
|
||||
* Mon Jan 24 2022 lvxiaoqian <xiaoqian@nj.iscas.ac.cn> - 0.90-4
|
||||
- do not use sse for riscv
|
||||
|
||||
* Wed Jun 23 2021 wuchaochao <wuchaochao4@huawei.com> - 0.90-3
|
||||
- add buildrequires: gcc-c++
|
||||
|
||||
* Thu Feb 27 2020 lijin Yang <yanglijin@huawei.com> - 0.90-2
|
||||
- remove dependency of python2
|
||||
* Thu Nov 7 2019 mengxian <mengxian@huawei.com> - 0.90-1
|
||||
|
||||
4
python-xgboost.yaml
Normal file
4
python-xgboost.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: pypi
|
||||
src_repo: xgboost
|
||||
tag_pattern: ^v
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user