Compare commits

..

No commits in common. "0793b831c14eafb00dba1c04935cee5557e930b4" and "53b59d1074b6c827c80c31ab782628599641e3e7" have entirely different histories.

3 changed files with 4 additions and 34 deletions

View File

@ -1,11 +0,0 @@
--- 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,23 +1,21 @@
%global pypi_name xgboost
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
%define _debugsource_template %{nil}
Name: python-%{pypi_name}
Version: 0.90
Release: 6
Release: 2
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 gcc-c++
BuildRequires: python3-devel
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: %{vendor}-rpm-config
Requires: openEuler-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 \
@ -37,11 +35,10 @@ Summary: %{summary}
%description -n python3-%{pypi_name} %{_description}
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%autosetup -n %{pypi_name}-%{version}
%build
pushd %{pypi_name}
sed -i "s/(PLUGIN_CFLAGS)/(PLUGIN_CFLAGS) -fPIE -pie/g" Makefile
%make_build
popd
%py3_build
@ -66,18 +63,6 @@ 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

View File

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