|
|
8a2bc2a |
%{?nodejs_find_provides_and_requires}
|
|
|
8a2bc2a |
|
|
|
caeab3c |
#enable/disable tests in case the deps aren't there
|
|
|
3cca1aa |
%bcond_with tests
|
|
|
caeab3c |
|
|
|
caeab3c |
Name: uglify-js
|
|
|
9bdb805 |
Version: 3.14.1
|
|
|
9bdb805 |
Release: 1%{?dist}
|
|
|
caeab3c |
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
|
|
|
caeab3c |
License: BSD
|
|
|
6203894 |
URL: https://github.com/mishoo/UglifyJS
|
|
|
6203894 |
Source0: http://registry.npmjs.org/%{name}/-/%{name}-%{version}.tgz
|
|
|
3dd99c6 |
|
|
|
313e404 |
BuildArch: noarch
|
|
|
b18dfc7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
Provides: nodejs-uglify-js = %{version}-%{release}
|
|
|
8f5c5b4 |
|
|
|
6203894 |
BuildRequires: nodejs
|
|
|
22cd933 |
BuildRequires: nodejs-packaging
|
|
|
8f5c5b4 |
BuildRequires: web-assets-devel
|
|
|
caeab3c |
|
|
|
bf4503b |
%if %{with tests}
|
|
|
f22e1cd |
BuildRequires: npm(acorn)
|
|
|
6203894 |
BuildRequires: npm(semver)
|
|
|
caeab3c |
%endif
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
Requires: js-uglify = %{version}-%{release}
|
|
|
caeab3c |
|
|
|
caeab3c |
%description
|
|
|
caeab3c |
JavaScript parser, mangler/compressor and beautifier toolkit.
|
|
|
caeab3c |
|
|
|
caeab3c |
This package ships the uglifyjs command-line tool and a library suitable for
|
|
|
caeab3c |
use within Node.js.
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
%package -n js-uglify
|
|
|
caeab3c |
Summary: JavaScript parser, mangler/compressor and beautifier toolkit - core library
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
Obsoletes: uglify-js-common < 2.2.5-4
|
|
|
8f5c5b4 |
Provides: uglify-js-common = %{version}-%{release}
|
|
|
5247121 |
|
|
|
5247121 |
%if 0%{?fedora}
|
|
|
8f5c5b4 |
Requires: web-assets-filesystem
|
|
|
5247121 |
%endif
|
|
|
8f5c5b4 |
|
|
|
8f5c5b4 |
%description -n js-uglify
|
|
|
caeab3c |
JavaScript parser, mangler/compressor and beautifier toolkit.
|
|
|
caeab3c |
|
|
|
caeab3c |
This package ships a JavaScript library suitable for use by any JavaScript
|
|
|
caeab3c |
runtime.
|
|
|
caeab3c |
|
|
|
caeab3c |
%prep
|
|
|
6203894 |
%autosetup -n package
|
|
|
caeab3c |
|
|
|
6203894 |
chmod 0755 bin/uglifyjs
|
|
|
2730c01 |
|
|
|
caeab3c |
%build
|
|
|
caeab3c |
#nothing to do
|
|
|
caeab3c |
|
|
|
b18dfc7 |
|
|
|
caeab3c |
%install
|
|
|
6203894 |
mkdir -p %{buildroot}%{_jsdir}/%{name}-3
|
|
|
6203894 |
cp -pr lib/* %{buildroot}%{_jsdir}/%{name}-3
|
|
|
6203894 |
ln -sf %{name}-3 %{buildroot}%{_jsdir}/%{name}
|
|
|
8f5c5b4 |
|
|
|
8f5c5b4 |
#compat symlink
|
|
|
8f5c5b4 |
mkdir -p %{buildroot}%{_datadir}
|
|
|
8f5c5b4 |
ln -sf javascript/%{name} %{buildroot}%{_datadir}/%{name}
|
|
|
caeab3c |
|
|
|
6203894 |
mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@3
|
|
|
6203894 |
cp -pr bin tools package.json %{buildroot}%{nodejs_sitelib}/uglify-js@3
|
|
|
6203894 |
ln -sf %{_jsdir}/%{name} %{buildroot}%{nodejs_sitelib}/uglify-js@3/lib
|
|
|
9127c45 |
# Fix for rpmlint.
|
|
|
9127c45 |
sed -i -e 's|^#! */usr/bin/env node|#!/usr/bin/node|' \
|
|
|
6203894 |
%{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/*
|
|
|
6203894 |
chmod 755 %{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/uglifyjs
|
|
|
caeab3c |
|
|
|
caeab3c |
mkdir -p %{buildroot}%{_bindir}
|
|
|
6203894 |
ln -sf ../lib/node_modules/uglify-js@3/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs
|
|
|
caeab3c |
|
|
|
cbffd93 |
%nodejs_symlink_deps
|
|
|
caeab3c |
|
|
|
6203894 |
ln -sf uglify-js@3 %{buildroot}%{nodejs_sitelib}/uglify-js
|
|
|
22cd933 |
|
|
|
b18dfc7 |
|
|
|
caeab3c |
%check
|
|
|
22cd933 |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
4fbe8e8 |
%{__nodejs} -e 'require("./")'
|
|
|
bf4503b |
%if %{with tests}
|
|
|
b8a6202 |
# Prevent timeout error on an ARM builder which is slower than the x86 builder.
|
|
|
b8a6202 |
sed -i '/timeout/ s/5000/10000/' test/mocha/cli.js
|
|
|
b8a6202 |
sed -i '/timeout/ s/10000/20000/' test/mocha/let.js
|
|
|
b8a6202 |
sed -i '/timeout/ s/20000/40000/' test/mocha/spidermonkey.js
|
|
|
ecacc80 |
NODE_DISABLE_COLORS=true %{__nodejs} test/run-tests.js
|
|
|
caeab3c |
%endif
|
|
|
caeab3c |
|
|
|
caeab3c |
|
|
|
0575871 |
%pretrans -p <lua>
|
|
|
22cd933 |
st = posix.stat("%{nodejs_sitelib}/uglify-js")
|
|
|
22cd933 |
if st and st.type == "directory" then
|
|
|
22cd933 |
os.execute("rm -rf %{nodejs_sitelib}/uglify-js")
|
|
|
22cd933 |
end
|
|
|
22cd933 |
|
|
|
b18dfc7 |
|
|
|
0575871 |
%pretrans -n js-uglify -p <lua>
|
|
|
8f5c5b4 |
st = posix.stat("%{_datadir}/%{name}")
|
|
|
8f5c5b4 |
if st and st.type == "directory" then
|
|
|
8f5c5b4 |
os.execute("rm -rf %{_datadir}/%{name}")
|
|
|
8f5c5b4 |
end
|
|
|
8f5c5b4 |
|
|
|
b18dfc7 |
|
|
|
caeab3c |
%files
|
|
|
22cd933 |
%{nodejs_sitelib}/uglify-js
|
|
|
6203894 |
%{nodejs_sitelib}/uglify-js@3
|
|
|
caeab3c |
%{_bindir}/uglifyjs
|
|
|
caeab3c |
|
|
|
b18dfc7 |
|
|
|
8f5c5b4 |
%files -n js-uglify
|
|
|
6203894 |
%{_jsdir}/%{name}-3
|
|
|
313e404 |
%{_jsdir}/%{name}
|
|
|
caeab3c |
%{_datadir}/%{name}
|
|
|
b18dfc7 |
%doc README.md
|
|
|
b18dfc7 |
%license LICENSE
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
|
|
|
caeab3c |
%changelog
|
|
|
9bdb805 |
* Fri Aug 13 2021 Sérgio Basto <sergio@serjux.com> - 3.14.1-1
|
|
|
9bdb805 |
- Update to 3.14.1
|
|
|
9bdb805 |
|
|
|
627d686 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.4-3
|
|
|
627d686 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
627d686 |
|
|
|
ebff0a1 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.4-2
|
|
|
ebff0a1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
ebff0a1 |
|
|
|
6203894 |
* Fri Sep 18 2020 Troy Dawson <tdawson@redhat.com> - 3.10.4-1
|
|
|
6203894 |
- Update to 3.10.4
|
|
|
6203894 |
|
|
|
ba72a7e |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-10
|
|
|
ba72a7e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
ba72a7e |
|
|
|
fe23c6f |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-9
|
|
|
fe23c6f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
fe23c6f |
|
|
|
313e404 |
* Wed Jan 22 2020 Jan Staněk <jstanek@redhat.com> - 2.8.22-8
|
|
|
313e404 |
- Remove unneeded legacy conditionals around %%{nodejs_arches} and %%{_jsdir}
|
|
|
ecacc80 |
- Disable colors in tests
|
|
|
bf4503b |
- Use %%bcond_without for conditional compilation
|
|
|
313e404 |
|
|
|
45c1c4f |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-7
|
|
|
45c1c4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
45c1c4f |
|
|
|
46377e5 |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-6
|
|
|
46377e5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
46377e5 |
|
|
|
4a29503 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-5
|
|
|
4a29503 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
4a29503 |
|
|
|
98f843d |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-4
|
|
|
98f843d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
98f843d |
|
|
|
af6792c |
* Tue Aug 15 2017 Jun Aruga <jaruga@redhat.com> - 2.8.22-3
|
|
|
af6792c |
- Remove duplicate BuildArch entry: BuildArch: noarch
|
|
|
af6792c |
|
|
|
b969be1 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-2
|
|
|
b969be1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b969be1 |
|
|
|
9127c45 |
* Tue Jul 04 2017 Jun Aruga <jaruga@redhat.com> - 2.8.22-1
|
|
|
9127c45 |
- Update to upstream 2.8.22 release
|
|
|
9127c45 |
|
|
|
f22e1cd |
* Wed Mar 29 2017 Jun Aruga <jaruga@redhat.com> - 2.8.17-1
|
|
|
f22e1cd |
- Update to upstream 2.8.17 release
|
|
|
f22e1cd |
|
|
|
2ea0a22 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-3
|
|
|
2ea0a22 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
2ea0a22 |
|
|
|
b8a6202 |
* Mon Aug 01 2016 Jun Aruga <jaruga@redhat.com> - 2.7.0-2
|
|
|
b8a6202 |
- Update to prevent timeout error on an ARM builder. (rhbz#1361179)
|
|
|
b8a6202 |
|
|
Jared K. Smith |
4fbe8e8 |
* Thu Jul 28 2016 Jared Smith <jsmith@fedoraproject.org> - 2.7.0-1
|
|
Jared K. Smith |
4fbe8e8 |
- Update to upstream 2.7.0 release
|
|
Jared K. Smith |
4fbe8e8 |
|
|
Jared K. Smith |
4fbe8e8 |
* Sat Jul 09 2016 Jared Smith <jsmith@fedoraproject.org> - 2.6.4-1
|
|
Jared K. Smith |
4fbe8e8 |
- Update to upstream 2.6.4 release
|
|
Jared K. Smith |
4fbe8e8 |
|
|
|
b18dfc7 |
* Wed Feb 10 2016 Tom Hughes <tom@compton.nu> - 2.6.1-1
|
|
|
b18dfc7 |
- Update to 2.6.1 upstream release
|
|
|
b18dfc7 |
|
|
|
c5dbbf9 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.13-9
|
|
|
c5dbbf9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
c5dbbf9 |
|
|
|
37a4aaf |
* Sat Nov 21 2015 Tom Hughes <tom@compton.nu> - 2.4.13-8
|
|
|
37a4aaf |
- update async dependency
|
|
|
37a4aaf |
|
|
|
769079c |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.13-7
|
|
|
769079c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
769079c |
|
|
|
786691d |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.13-6
|
|
|
786691d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
786691d |
|
|
|
3dd99c6 |
* Thu May 08 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.4.13-5
|
|
|
3dd99c6 |
- add logic for building on EL6
|
|
|
3dd99c6 |
|
|
|
0575871 |
* Tue Apr 29 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.4.13-4
|
|
|
0575871 |
- pretrans script should actually be split in two, so one half should run in
|
|
|
0575871 |
uglify-js and the other half should run in js-uglify (#1092184)
|
|
|
0575871 |
|
|
|
d31a107 |
* Tue Apr 01 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.4.13-3
|
|
|
d31a107 |
- pretrans script should run in js-uglify subpackage (#1082946)
|
|
|
d31a107 |
|
|
|
5247121 |
* Sat Mar 15 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.4.13-2
|
|
|
5247121 |
- add logic for building on EPEL 6 as web-assets-{devel,filesystem} are not
|
|
|
5247121 |
yet available
|
|
|
5247121 |
|
|
|
b679f9b |
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.4.13-1
|
|
|
b679f9b |
- update to upstream release 2.4.13
|
|
|
b679f9b |
|
|
|
8f5c5b4 |
* Mon Jan 20 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.5-4
|
|
|
8f5c5b4 |
- port to new JS guidelines
|
|
|
8f5c5b4 |
- provide the nodejs- form
|
|
|
8f5c5b4 |
|
|
|
22cd933 |
* Sun Jan 19 2014 Tom Hughes <tom@compton.nu> - 2.2.5-3
|
|
|
22cd933 |
- use new multi-version packaging rules
|
|
|
22cd933 |
- update to latest nodejs packaging standards
|
|
|
22cd933 |
|
|
|
e236866 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-2
|
|
|
e236866 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e236866 |
|
|
|
e1caa03 |
* Tue Apr 16 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.5-1
|
|
|
e1caa03 |
- new upstream release 2.2.5
|
|
|
e1caa03 |
|
|
|
cbffd93 |
* Tue Apr 16 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-3
|
|
|
cbffd93 |
- call nodejs_symlink_deps
|
|
|
2730c01 |
- fix optimist dep for 0.4.0
|
|
|
cbffd93 |
|
|
|
e328d93 |
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-2
|
|
|
e328d93 |
- install tools dir
|
|
|
afe9e4b |
- enable tests
|
|
|
e328d93 |
|
|
|
1bbee3f |
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-1
|
|
|
1bbee3f |
- new upstream release 2.2.4
|
|
|
1bbee3f |
|
|
|
caeab3c |
* Fri Feb 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.3-6
|
|
|
caeab3c |
- rearrange symlinks so dep generator works
|
|
|
caeab3c |
|
|
|
caeab3c |
* Fri Feb 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.3-5
|
|
|
caeab3c |
- really fix install section
|
|
|
caeab3c |
- conditionalize tests
|
|
|
caeab3c |
|
|
|
caeab3c |
* Thu Jan 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.3-4
|
|
|
caeab3c |
- fix install section
|
|
|
caeab3c |
|
|
|
caeab3c |
* Thu Jan 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.3-3
|
|
|
caeab3c |
- split off -common subpackage for use with other runtimes
|
|
|
caeab3c |
|
|
|
caeab3c |
* Fri Jan 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.3-2
|
|
|
caeab3c |
- BuildRequire deps so tests work
|
|
|
caeab3c |
|
|
|
caeab3c |
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.3-1
|
|
|
caeab3c |
- initial package generated by npm2rpm
|