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>
This commit is contained in:
parent
e574e7cbe6
commit
96b419f6a2
1 changed files with 3 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue