From 16d414a399fc2efe5091307dc2ede3358d917e24 Mon Sep 17 00:00:00 2001 From: yanglijin Date: Thu, 27 Feb 2020 08:53:51 -0500 Subject: [PATCH] modify --- python-xgboost.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python-xgboost.spec b/python-xgboost.spec index 0ceb6cd..04111b2 100644 --- a/python-xgboost.spec +++ b/python-xgboost.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 0.90 -Release: 1 +Release: 2 Summary: Scalable, Portable and Distributed Gradient Boosting Library License: Apache-2 URL: https://github.com/dmlc/xgboost @@ -51,6 +51,7 @@ install -m 755 -d %{buildroot}/usr/xgboost install lib/libxgboost.so %{buildroot}/usr/xgboost popd %py3_install +find %{buildroot} -name "*.py" -exec sed -i -r 's!/usr/bin/python(\s|$)!/usr/bin/python3\1!' {} \; %check @@ -61,8 +62,8 @@ popd %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ - - %changelog +* Thu Feb 27 2020 lijin Yang - 0.90-2 +- remove dependency of python2 * Thu Nov 7 2019 mengxian - 0.90-1 - Init package -- Gitee