Compare commits

...

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

7 changed files with 92 additions and 43 deletions

10
.gitignore vendored
View File

@ -1 +1,9 @@
SOURCES/uglify-js-v2.8.29.tar.gz
/uglify-js-2.2.3.tgz
/uglify-js-2.2.4.tgz
/uglify-js-2.2.5.tgz
/uglify-js-2.4.13.tgz
/uglify-js-2.6.1.tar.gz
/uglify-js-2.7.0.tar.gz
/uglify-js-2.8.17.tar.gz
/uglify-js-2.8.22.tar.gz
/uglify-js-3.10.4.tgz

View File

@ -1 +1 @@
504fdbbf1740fd6a34d05ae7d4f7260b363ab931 SOURCES/uglify-js-v2.8.29.tar.gz
dd680f5687bc0d7a93b14a3482d16db6eba2bfbb uglify-js-3.10.4.tgz

1
dead.package Normal file
View File

@ -0,0 +1 @@
uglify-js package is retired on c9s for CS-576

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
...

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (uglify-js-3.10.4.tgz) = 901153dd4e03723e3fa49e76bdf8c249fc8bcaf1bd55862e1983e6acfbc0c51c3f8bbc47893e15bc27affae88431c1048aee94341e8a816986b5251821649c6f

16
tests/tests.yml Normal file
View File

@ -0,0 +1,16 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- uglify-js
tests:
# Check that the main binary can be run at all
- usable:
run: uglifyjs --version
# Check that a basic expression is correctly minified
- expression:
run: test "$(echo '1 + 1'|uglifyjs --expression)" = '1+1;'
...

View File

@ -1,29 +1,30 @@
%{?nodejs_find_provides_and_requires}
# don't require bundled modules
%global __requires_exclude_from ^%{_prefix}/lib/node_modules/uglify-js@2/.*$
%global __requires_exclude_from ^%{_prefix}/lib/node_modules/uglify-js/.*$
#enable/disable tests in case the deps aren't there
%bcond_without tests
%bcond_with tests
Name: uglify-js
Version: 2.8.29
Release: 4%{?dist}
Version: 3.10.4
Release: 3%{?dist}
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
Group: Development/Tools
License: BSD
URL: https://github.com/mishoo/UglifyJS2
Source0: https://github.com/mishoo/UglifyJS2/archive/v%{version}/uglify-js-v%{version}.tar.gz
URL: https://github.com/mishoo/UglifyJS
Source0: http://registry.npmjs.org/%{name}/-/%{name}-%{version}.tgz
BuildArch: noarch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
Provides: nodejs-uglify-js = %{version}-%{release}
BuildRequires: nodejs nodejs-packaging
BuildRequires: nodejs
BuildRequires: nodejs-packaging
BuildRequires: web-assets-devel
%if %{with tests}
BuildRequires: npm(acorn)
BuildRequires: npm(semver)
%endif
Requires: js-uglify = %{version}-%{release}
%description
@ -34,11 +35,13 @@ use within Node.js.
%package -n js-uglify
Summary: JavaScript parser, mangler/compressor and beautifier toolkit - core library
Group: System Environment/Libraries
Obsoletes: uglify-js-common < 2.2.5-4
Provides: uglify-js-common = %{version}-%{release}
%if 0%{?fedora}
Requires: web-assets-filesystem
%endif
%description -n js-uglify
JavaScript parser, mangler/compressor and beautifier toolkit.
@ -47,35 +50,37 @@ This package ships a JavaScript library suitable for use by any JavaScript
runtime.
%prep
%autosetup -n UglifyJS2-%{version}
%autosetup -n package
chmod 0755 bin/uglifyjs
%build
#nothing to do
%install
rm -rf %buildroot
mkdir -p %{buildroot}%{_jsdir}/%{name}-2
cp -pr lib/* %{buildroot}%{_jsdir}/%{name}-2
ln -sf %{name}-2 %{buildroot}%{_jsdir}/%{name}
mkdir -p %{buildroot}%{_jsdir}/%{name}-3
cp -pr lib/* %{buildroot}%{_jsdir}/%{name}-3
ln -sf %{name}-3 %{buildroot}%{_jsdir}/%{name}
#compat symlink
mkdir -p %{buildroot}%{_datadir}
ln -sf javascript/%{name} %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@2
cp -pr bin tools package.json node_modules %{buildroot}%{nodejs_sitelib}/uglify-js@2
ln -sf %{_jsdir}/%{name} %{buildroot}%{nodejs_sitelib}/uglify-js@2/lib
mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@3
cp -pr bin tools package.json %{buildroot}%{nodejs_sitelib}/uglify-js@3
ln -sf %{_jsdir}/%{name} %{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@2/bin/*
%{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/*
chmod 755 %{buildroot}%{nodejs_sitelib}/uglify-js@3/bin/uglifyjs
mkdir -p %{buildroot}%{_bindir}
ln -sf ../lib/node_modules/uglify-js@2/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs
ln -sf ../lib/node_modules/uglify-js@3/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs
ln -sf uglify-js@2 %{buildroot}%{nodejs_sitelib}/uglify-js
%nodejs_symlink_deps
ln -sf uglify-js@3 %{buildroot}%{nodejs_sitelib}/uglify-js
%check
@ -86,7 +91,7 @@ ln -sf uglify-js@2 %{buildroot}%{nodejs_sitelib}/uglify-js
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
%__nodejs test/run-tests.js
NODE_DISABLE_COLORS=true %{__nodejs} test/run-tests.js
%endif
@ -105,15 +110,13 @@ end
%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/uglify-js
%{nodejs_sitelib}/uglify-js@2
%{nodejs_sitelib}/uglify-js@3
%{_bindir}/uglifyjs
%files -n js-uglify
%defattr(-,root,root,-)
%{_jsdir}/%{name}-2
%{_jsdir}/%{name}-3
%{_jsdir}/%{name}
%{_datadir}/%{name}
%doc README.md
@ -121,22 +124,34 @@ end
%changelog
* Wed Jan 22 2020 Jan Staněk <jstanek@redhat.com> - 2.8.29-4
- Rebuilt with package tests
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.10.4-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 21 2020 Jan Staněk <jstanek@redhat.com> - 2.8.29-3
- Rebuilt with gating enabled
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jan 21 2020 Jan Staněk <jstanek@redhat.com> - 2.8.29-2
* Fri Sep 18 2020 Troy Dawson <tdawson@redhat.com> - 3.10.4-1
- Update to 3.10.4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jan 22 2020 Jan Staněk <jstanek@redhat.com> - 2.8.22-8
- Remove unneeded legacy conditionals around %%{nodejs_arches} and %%{_jsdir}
Resolves: rhbz#1737038
- BuildRequire nodejs for test runs
- Remove reference to non-applied patch
- Disable colors in tests
- Use %%bcond_without for conditional compilation
* Wed Jul 25 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.8.29-1
- Update to 2.8.29
- bundle deps, remove all npm modules BR
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.22-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild