Update uglify-js for EPEL 7 to version 3

Provide/Obsolete uglify-js3
epel9
Mattias Ellert 3 years ago
parent 50aa8c1c9e
commit 920dd09141

@ -5,7 +5,7 @@
Name: uglify-js
Version: 3.14.5
Release: 1%{?dist}
Release: 2%{?dist}
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
License: BSD
URL: https://github.com/mishoo/UglifyJS
@ -16,6 +16,11 @@ ExclusiveArch: %{nodejs_arches} noarch
Provides: nodejs-uglify-js = %{version}-%{release}
Provides: uglify-js3 = %{version}-%{release}
Obsoletes: uglify-js3 < 3.14.5-2
Provides: nodejs-uglify-js3 = %{version}-%{release}
BuildRequires: nodejs
BuildRequires: nodejs-packaging
BuildRequires: web-assets-devel
@ -25,7 +30,7 @@ BuildRequires: npm(acorn)
BuildRequires: npm(semver)
%endif
Requires: js-uglify = %{version}-%{release}
Requires: js-uglify = %{version}-%{release}
%description
JavaScript parser, mangler/compressor and beautifier toolkit.
@ -34,10 +39,13 @@ This package ships the uglifyjs command-line tool and a library suitable for
use within Node.js.
%package -n js-uglify
Summary: JavaScript parser, mangler/compressor and beautifier toolkit - core library
Summary: JavaScript parser, mangler/compressor and beautifier toolkit - core library
Obsoletes: uglify-js-common < 2.2.5-4
Provides: uglify-js-common = %{version}-%{release}
Provides: js-uglify3 = %{version}-%{release}
Obsoletes: js-uglify3 < 3.14.5-2
Provides: uglify-js-common = %{version}-%{release}
Obsoletes: uglify-js-common < 2.2.5-4
Requires: web-assets-filesystem
@ -74,7 +82,8 @@ sed -i -e 's|^#! */usr/bin/env node|#!/usr/bin/node|' \
chmod 755 %{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/uglifyjs
mkdir -p %{buildroot}%{_bindir}
ln -sf ../lib/node_modules/uglify-js@3/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs
ln -sf ../lib/node_modules/uglify-js@3/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs-3
ln -sf uglifyjs-3 %{buildroot}%{_bindir}/uglifyjs
%nodejs_symlink_deps
@ -110,6 +119,7 @@ end
%files
%{nodejs_sitelib}/uglify-js
%{nodejs_sitelib}/uglify-js@3
%{_bindir}/uglifyjs-3
%{_bindir}/uglifyjs
@ -122,6 +132,10 @@ end
%changelog
* Wed Jan 19 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.5-2
- Update uglify-js for EPEL 7 to version 3
- Provide/Obsolete uglify-js3
* Thu Dec 16 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.5-1
- Update to 3.14.5

Loading…
Cancel
Save