Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
0793b831c1
!17 [sync] PR-16: add PIE compiler option
From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2023-06-07 03:11:46 +00:00
chen-jan
171c8fc1ce add PIE compiler option
(cherry picked from commit a1f6aad616c946c58b10860ffbfd67564f833cbf)
2023-06-07 08:59:55 +08:00
openeuler-ci-bot
f44aee5921
!10 Replace openEuler with vendor macro
From: @caodongxia 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2022-11-17 11:23:16 +00:00
caodongxia
9b116ec0c5 Replace openEuler with vendor macro 2022-11-17 19:02:09 +08:00
openeuler-ci-bot
95fbabfd97
!5 [sync] PR-4: do not use sse for riscv
Merge pull request !5 from openeuler-sync-bot/sync-pr4-master-to-openEuler-22.03-LTS-Next
2022-01-25 07:29:17 +00:00
吕晓倩
dd39471e34 do not use sse for riscv
(cherry picked from commit e65c93da72ddd14acb3f6d7fab407f51c32a073a)
2022-01-25 14:28:19 +08:00
openeuler-ci-bot
16c33f793b !3 add buildrequires gcc-c++
From: @wcc_140409
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-06-24 02:14:35 +00:00
19909236985
5a10b47524 add gcc-c++ 2021-06-23 16:27:08 +08:00
openeuler-ci-bot
415512ee45 !2 Add python-xgboost.yaml
Merge pull request !2 from huanghaitao/master
2020-05-13 15:53:08 +08:00
hht8
d107132f31 Add python-xgboost.yaml 2020-05-09 16:57:51 +08:00
3 changed files with 34 additions and 4 deletions

View 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

View File

@ -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
View File

@ -0,0 +1,4 @@
version_control: pypi
src_repo: xgboost
tag_pattern: ^v
seperator: .