From 96b419f6a254a4a2ad56462994de0aea9c961504 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Fri, 18 Sep 2020 20:18:35 +0000 Subject: [PATCH] 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 --- nodejs-underscore.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nodejs-underscore.spec b/nodejs-underscore.spec index e377e84..fa55ffb 100644 --- a/nodejs-underscore.spec +++ b/nodejs-underscore.spec @@ -62,18 +62,17 @@ rm -f underscore-min.* %build -/usr/bin/uglifyjs underscore.js -m --source-map underscore-min.map \ - -o underscore-min.js +/usr/bin/uglifyjs underscore.js -m --source-map -o underscore-min.js %install 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 # Install browser version 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} # No dependencies.