%global pypi_name xgboost%define _debugsource_template %{nil}Name: python-%{pypi_name}Version: 1.7.6Release: 2Summary: Scalable, Portable and Distributed Gradient Boosting LibraryLicense: Apache-2.0URL: https://github.com/dmlc/xgboostSource0: %{pypi_source xgboost}Source1: 0001-set-lib-install-dirBuildRequires: python3-devel gcc-c++ cmake ninja-buildRequires: dejavu-fonts-common dejavu-sans-fonts libgfortranRequires: openblas openblas-serial openblas-threadsRequires: python3-numpy python3-numpy-f2py python3-scipyRequires: fontconfig fontpackages-filesystemRequires: libX11 libXau libXft libXrender libxcbRequires: %{_vendor}-rpm-configRequires: python3-devel python3-rpm-generators tk%global _description \XGBoost is an optimized distributed gradient boosting library designed to be \highly efficient, flexible and portable. It implements machine learning \algorithms under the Gradient Boosting framework. XGBoost provides a parallel \tree boosting (also known as GBDT, GBM) that solve many data science problems \in a fast and accurate way. The same code runs on major distributed environment \(Kubernetes, Hadoop, SGE, MPI, Dask) and can solve problems beyond billions of \examples.%description %{_description}%package -n python3-%{pypi_name}Summary: %{summary}%{?python_provide:%python_provide python3-%{pypi_name}}%description -n python3-%{pypi_name} %{_description}%prep%setup -n %{pypi_name}-%{version}%ifarch x86_64sed -i 's/aarch64/x86_64/g' %{SOURCE1}%endif%ifarch riscv64sed -i 's/aarch64/riscv64/g' %{SOURCE1}%endifcp %{SOURCE1} ./set-lib-install-dir.patchpatch -p1 < ./set-lib-install-dir.patch%build%py3_build%installpushd buildinstall -m 755 -d %{buildroot}%{_bindir}install -m 755 ./temp.linux-*-cpython-311/xgboost/xgboost %{buildroot}%{_bindir}install -m 755 -d %{buildroot}/usr/xgboostinstall ./temp.linux-*-cpython-311/xgboost/lib/libxgboost.so %{buildroot}/usr/xgboostpopd%py3_install%check%files -n python3-%{pypi_name}%{_bindir}/xgboost/usr/xgboost%doc README.rst%{python3_sitearch}/%{pypi_name}/%{python3_sitearch}/%{pypi_name}-*.egg-info/%changelog* Wed Jul 09 2025 laokz <zhangkai@iscas.ac.cn> - 1.7.6-2- Riscv64: adapt library install directory* Thu May 08 2025 Ge Wang <wang__ge@126.com> - 1.7.6-1- Update to version 1.7.6* 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* 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- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型