Fix FTBFS in Rawhide

uglyify-js version 2.x is not working correctly with the newest nodejs, so it has been updated to 3.10.4
The source-map has a little different syntax and output.
This pull request corresponds to the new command syntax and file output.

Signed-off-by: Troy Dawson <tdawson@redhat.com>
f38
Troy Dawson 4 years ago
parent e574e7cbe6
commit 96b419f6a2

@ -62,18 +62,17 @@ rm -f underscore-min.*
%build %build
/usr/bin/uglifyjs underscore.js -m --source-map underscore-min.map \ /usr/bin/uglifyjs underscore.js -m --source-map -o underscore-min.js
-o underscore-min.js
%install %install
mkdir -p %{buildroot}%{nodejs_sitelib}/underscore mkdir -p %{buildroot}%{nodejs_sitelib}/underscore
cp -pr package.json underscore.js underscore-min.js underscore-min.map \ cp -pr package.json underscore.js underscore-min.js underscore-min.js.map \
%{buildroot}%{nodejs_sitelib}/underscore %{buildroot}%{nodejs_sitelib}/underscore
# Install browser version # Install browser version
mkdir -p %{buildroot}%{installdir} mkdir -p %{buildroot}%{installdir}
cp -pr underscore.js underscore-min.js underscore-min.map \ cp -pr underscore.js underscore-min.js underscore-min.js.map \
%{buildroot}%{installdir} %{buildroot}%{installdir}
# No dependencies. # No dependencies.

Loading…
Cancel
Save