Compare commits

...
Sign in to create a new pull request.

18 commits

Author SHA1 Message Date
Mattias Ellert
10f1bad541 Update to 3.19.3 2024-09-10 17:06:23 +02:00
Mattias Ellert
da5596cd44 Update to 3.19.2 2024-08-13 01:33:53 +02:00
Mattias Ellert
463771270e Update to 3.19.1 2024-08-04 15:13:38 +02:00
Mattias Ellert
97d462be09 Update to 3.19.0 2024-07-18 14:35:35 +02:00
Mattias Ellert
11ba4e2004 Update to 3.18.0 2024-06-10 21:47:10 +02:00
Mattias Ellert
57c827bd8b Update to 3.17.4 2023-03-15 05:35:00 +01:00
Mattias Ellert
e523bf5cc1 Update to 3.17.1 2022-09-20 14:21:30 +02:00
Mattias Ellert
e722ec983c Update to 3.16.1 2022-06-17 10:18:42 +02:00
Mattias Ellert
709976f9a4 Update to 3.15.4 2022-04-20 11:54:29 +02:00
Mattias Ellert
276a6288bd Update to 3.15.3 2022-03-20 18:47:47 +01:00
Mattias Ellert
b8ea24b05f Update to 3.15.2 2022-02-28 09:29:46 +01:00
Mattias Ellert
e21f89224f Update to 3.15.1 2022-02-07 15:16:09 +01:00
Mattias Ellert
b65ac64cac Update to 3.15.0 2022-01-26 22:00:13 +01:00
Mattias Ellert
274d7089f8 Update to 3.14.5 2021-12-16 12:02:06 +01:00
Mattias Ellert
286fcf68f1 Update to 3.14.4 2021-12-01 10:24:22 +01:00
Mattias Ellert
73e1eda737 Update to 3.14.3 2021-11-02 21:58:15 +01:00
Mattias Ellert
6b02025cd2 Update to 3.14.2 2021-10-14 14:05:04 +02:00
Mattias Ellert
75b5f018a9 Parallel installable uglify-js version 3 for EPEL 2021-08-16 21:29:07 +02:00
3 changed files with 156 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/*.tgz

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (uglify-js-3.19.3.tgz) = bf75eefb2bb00578aca7a4184dc1f851b1fec58257aa7ab69bf2ed41558a5b361cd627a16272e2c6840337d147ebf8fdfe8c9b7dde96f46870925f3e50c29329

154
uglify-js3.spec Normal file
View file

@ -0,0 +1,154 @@
%{?nodejs_find_provides_and_requires}
#enable/disable tests in case the deps aren't there
%bcond_with tests
%define oname uglify-js
Name: uglify-js3
Version: 3.19.3
Release: 1%{?dist}
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
License: BSD-2-Clause
URL: https://github.com/mishoo/UglifyJS
Source0: https://registry.npmjs.org/%{oname}/-/%{oname}-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
Provides: nodejs-uglify-js3 = %{version}-%{release}
BuildRequires: nodejs
BuildRequires: nodejs-packaging
BuildRequires: web-assets-devel
%if %{with tests}
BuildRequires: npm(acorn)
BuildRequires: npm(semver)
%endif
Requires: js-uglify3 = %{version}-%{release}
%description
JavaScript parser, mangler/compressor and beautifier toolkit.
This package ships the uglifyjs command-line tool and a library suitable for
use within Node.js.
%package -n js-uglify3
Summary: JavaScript parser, mangler/compressor and beautifier toolkit - core library
Requires: web-assets-filesystem
%description -n js-uglify3
JavaScript parser, mangler/compressor and beautifier toolkit.
This package ships a JavaScript library suitable for use by any JavaScript
runtime.
%prep
%autosetup -n package
chmod 0755 bin/uglifyjs
%build
#nothing to do
%install
mkdir -p %{buildroot}%{_jsdir}/%{oname}-3
cp -pr lib/* %{buildroot}%{_jsdir}/%{oname}-3
mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@3
cp -pr bin tools package.json %{buildroot}%{nodejs_sitelib}/uglify-js@3
ln -rs %{buildroot}%{_jsdir}/%{oname}-3 \
%{buildroot}%{nodejs_sitelib}/uglify-js@3/lib
# Fix for rpmlint.
sed -i -e 's|^#! */usr/bin/env node|#!/usr/bin/node|' \
%{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/uglifyjs
chmod 755 %{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/uglifyjs
mkdir -p %{buildroot}%{_bindir}
ln -rs %{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/uglifyjs \
%{buildroot}%{_bindir}/uglifyjs-3
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if %{with tests}
# Prevent timeout error on an ARM builder which is slower than the x86 builder.
sed -i '/timeout/ s/5000/10000/' test/mocha/cli.js
sed -i '/timeout/ s/10000/20000/' test/mocha/let.js
sed -i '/timeout/ s/20000/40000/' test/mocha/spidermonkey.js
NODE_DISABLE_COLORS=true %{__nodejs} test/run-tests.js
%endif
%files
%{nodejs_sitelib}/uglify-js@3
%{_bindir}/uglifyjs-3
%files -n js-uglify3
%{_jsdir}/%{oname}-3
%doc README.md
%license LICENSE
%changelog
* Tue Sep 10 2024 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.19.3-1
- Update to 3.19.3
* Mon Aug 12 2024 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.19.2-1
- Update to 3.19.2
* Sun Aug 04 2024 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.19.1-1
- Update to 3.19.1
* Thu Jul 18 2024 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.19.0-1
- Update to 3.19.0
* Mon Jun 10 2024 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.18.0-1
- Update to 3.18.0
* Wed Mar 15 2023 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.17.4-1
- Update to 3.17.4
* Tue Sep 20 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.17.1-1
- Update to 3.17.1
* Fri Jun 17 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.16.1-1
- Update to 3.16.1
* Wed Apr 20 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.15.4-1
- Update to 3.15.4
* Sun Mar 20 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.15.3-1
- Update to 3.15.3
* Mon Feb 28 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.15.2-1
- Update to 3.15.2
* Mon Feb 07 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.15.1-1
- Update to 3.15.1
* Wed Jan 26 2022 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.15.0-1
- Update to 3.15.0
* Thu Dec 16 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.5-1
- Update to 3.14.5
* Wed Dec 01 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.4-1
- Update to 3.14.4
* Tue Nov 02 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.3-1
- Update to 3.14.3
* Thu Oct 14 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.2-1
- Update to 3.14.2
* Mon Aug 16 2021 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.14.1-1
- Parallel installable uglify-js version 3 for EPEL