delete -Sgit from %autosetup, and delete BuildRequires git

This commit is contained in:
chenyanpanHW 2021-07-30 23:30:31 +08:00
parent 99fc7c7611
commit ea72cb8d6b
No known key found for this signature in database
GPG Key ID: 6DAA738A86DB45D7

View File

@ -3,7 +3,7 @@
Name: python-scikit-learn Name: python-scikit-learn
Summary: A Python module for machine learning built on top of SciPy Summary: A Python module for machine learning built on top of SciPy
Version: 0.24.0 Version: 0.24.0
Release: 3 Release: 4
License: BSD License: BSD
URL: https://scikit-learn.org/stable/ URL: https://scikit-learn.org/stable/
Source0: https://github.com/scikit-learn/scikit-learn/archive/%{version}/scikit-learn-%{version}.tar.gz Source0: https://github.com/scikit-learn/scikit-learn/archive/%{version}/scikit-learn-%{version}.tar.gz
@ -17,14 +17,14 @@ and is distributed under the 3-Clause BSD license.\
%package -n python3-scikit-learn %package -n python3-scikit-learn
Summary: %summary Summary: %summary
BuildRequires: git python3-devel python3-numpy python3-Cython python3-pytest python3-scipy g++ BuildRequires: python3-devel python3-numpy python3-Cython python3-pytest python3-scipy g++
Requires: python3 >= 3.5 python3-numpy >= 1.11.0 Requires: python3 >= 3.5 python3-numpy >= 1.11.0
Requires: python3-scipy >= 0.17.0 python3-joblib >= 0.11 Requires: python3-scipy >= 0.17.0 python3-joblib >= 0.11
%description -n python3-scikit-learn %_description %description -n python3-scikit-learn %_description
%prep %prep
%autosetup -n scikit-learn-%{version} -p1 -Sgit %autosetup -n scikit-learn-%{version} -p1
%build %build
CFLAGS="$RPM_OPT_FLAGS -s" CFLAGS="$RPM_OPT_FLAGS -s"
@ -40,6 +40,9 @@ CFLAGS="$RPM_OPT_FLAGS -s"
%{python3_sitearch}/scikit_learn-*.egg-info %{python3_sitearch}/scikit_learn-*.egg-info
%changelog %changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.24.0-4
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Wed Jun 23 2021 liudabo <liudabo1@huawei.com> - 0.24.0-3 * Wed Jun 23 2021 liudabo <liudabo1@huawei.com> - 0.24.0-3
- Add g++ build dependcy - Add g++ build dependcy