Revert "Fix FTBFS in Rawhide"

This reverts commit 96b419f6a2
for the f33 branch only.

Fedora 33 still has uglify-js 2.x so it needs to keep using the old
invocation.
This commit is contained in:
Dan Callaghan 2020-12-30 17:23:49 +10:00
commit 62b88cecf3

View file

@ -10,7 +10,7 @@
Name: nodejs-underscore
Version: 1.10.2
Release: 3%{?dist}
Release: 3%{?dist}.1
Summary: JavaScript's functional programming helper library
License: MIT
URL: http://underscorejs.org/
@ -62,17 +62,18 @@ rm -f underscore-min.*
%build
/usr/bin/uglifyjs underscore.js -m --source-map -o underscore-min.js
/usr/bin/uglifyjs underscore.js -m --source-map underscore-min.map \
-o underscore-min.js
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/underscore
cp -pr package.json underscore.js underscore-min.js underscore-min.js.map \
cp -pr package.json underscore.js underscore-min.js underscore-min.map \
%{buildroot}%{nodejs_sitelib}/underscore
# Install browser version
mkdir -p %{buildroot}%{installdir}
cp -pr underscore.js underscore-min.js underscore-min.js.map \
cp -pr underscore.js underscore-min.js underscore-min.map \
%{buildroot}%{installdir}
# No dependencies.