diff --git a/ovirt-web-ui.spec b/ovirt-web-ui.spec index 8e6d988..a460353 100644 --- a/ovirt-web-ui.spec +++ b/ovirt-web-ui.spec @@ -7,7 +7,7 @@ Name: ovirt-web-ui Version: 1.7.0 -Release: 2 +Release: 3 Summary: VM Portal for %{product} License: Apache 2.0 URL: https://github.com/oVirt/ovirt-web-ui @@ -37,6 +37,17 @@ popd %build export PATH="%{_datadir}/ovirt-engine-nodejs/bin:%{_datadir}/ovirt-engine-nodejs-modules/bin:${PATH}" %configure + +# 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/loader-utils/lib/index.js +sed -i 's/md4/sha512/g' node_modules/loader-utils/lib/*.js +sed -i 's/md4/sha512/g' node_modules/babel-loader/lib/cache.js +sed -i 's/md4/sha512/g' node_modules/webpack/node_modules/terser-webpack-plugin/dist/index.js + make %install @@ -50,7 +61,11 @@ make install DESTDIR=%{buildroot} %{_sysconfdir}/ovirt-engine/engine.conf.d/50-ovirt-web-ui.conf %{_sysconfdir}/ovirt-web-ui/branding/00-ovirt.brand + %changelog +* Wed May 24 2023 jiangxinyu - 1.7.0-3 +- Change hardcoded deafult hash algorithm from legacy md4 to sha512 + * Wed May 18 2022 jiangxinyu - 1.7.0-2 - Add Simplify-package-exports.patch