Change hardcoded deafult hash algorithm from legacy md4 to sha512

This commit is contained in:
yanjianqing 2023-03-03 15:10:28 +08:00
parent 7b1dc78489
commit 3d656b0b4e

View File

@ -1,7 +1,7 @@
Name: ovirt-engine-ui-extensions
Summary: oVirt UI Extensions
Version: 1.2.6
Release: 1
Release: 2
License: ASL 2.0
URL: http://www.ovirt.org/
Source: ovirt-engine-ui-extensions-1.2.6.tar.gz
@ -35,6 +35,13 @@ Extensions include:
# Set up Node.js environment with dependencies linked to ./node_modules:
source %{_datadir}/ovirt-engine-nodejs-modules/setup-env.sh
# Change hardcoded deafult hash algorithm from legacy md4 to sha512
sed -i 's/md4/sha512/g' node_modules/webpack/lib/*.js
sed -i 's/md4/sha512/g' node_modules/webpack/lib/optimize/*.js
sed -i 's/md4/sha512/g' node_modules/copy-webpack-plugin/dist/*.js
sed -i 's/md4/sha512/g' node_modules/terser-webpack-plugin/dist/*.js
sed -i 's/md4/sha512/g' node_modules/babel-loader/lib/*.js
# Build the application:
yarn build
@ -67,6 +74,9 @@ ln -s "%{_datadir}/%{name}/ansible-playbooks/ovirt-cluster-upgrade.yml" "%{build
%license LICENSE
%changelog
* Fri Mar 3 2023 yanjianqing<yanjianqing@kylinos.cn> -1.2.6-2
- Change hardcoded deafult hash algorithm from legacy md4 to sha512
* Tue Jul 6 2021 kymayl<mayilin@kylinos.cn> - 1.2.6-1
- upgrade package