优先使用构建环境统一npm配置而不需要单独在本项目中修改
This commit is contained in:
parent
daa0e99658
commit
0af5dbcc5f
@ -11,7 +11,7 @@
|
||||
%define _binaries_in_noarch_packages_terminate_build 0
|
||||
Name: hadoop
|
||||
Version: 3.3.6
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A software platform for processing vast amounts of data
|
||||
# The BSD license file is missing
|
||||
# https://issues.apache.org/jira/browse/HADOOP-9849
|
||||
@ -279,9 +279,7 @@ mkdir -p ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/
|
||||
cp %{SOURCE14} ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/
|
||||
mv ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5.tar.gz ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-1.22.5.tar.gz
|
||||
tar -xzvf ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-1.22.5.tar.gz -C ${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/
|
||||
npm config set registry https://repo.huaweicloud.com/repository/npm/
|
||||
npm cache clean -f
|
||||
${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5/bin/yarn config set registry https://repo.huaweicloud.com/repository/npm/ -g
|
||||
${HOME}/.m2/repository/com/github/eirslett/yarn/1.22.5/yarn-v1.22.5/bin/yarn config set ignore-engines true
|
||||
|
||||
%pom_add_dep org.iq80.leveldb:leveldb-api:0.7 hadoop-hdfs-project/hadoop-hdfs
|
||||
@ -1160,6 +1158,9 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg
|
||||
|
||||
%changelog
|
||||
* Mon Nov 11 2024 xiaochn <xiaochuannan@inspur.com> - 3.3.6-5
|
||||
- Remove npm repo in spec file and use unified configuration of the build environment
|
||||
|
||||
* Thu Sep 26 2024 Deyuan Fan <fandeyuan@kylinos.cn> - 3.3.6-4
|
||||
- fix CVE-2024-23454
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user