|
|
8a2bc2a |
%{?nodejs_find_provides_and_requires}
|
|
|
8a2bc2a |
|
|
|
caeab3c |
#enable/disable tests in case the deps aren't there
|
|
|
afe9e4b |
%global enable_tests 1
|
|
|
caeab3c |
|
|
|
5247121 |
%if 0%{?fedora}
|
|
|
5247121 |
%global installdir %{_jsdir}
|
|
|
5247121 |
%else
|
|
|
5247121 |
%global installdir %{_datadir}/javascript
|
|
|
5247121 |
%endif
|
|
|
5247121 |
|
|
|
caeab3c |
Name: uglify-js
|
|
|
b18dfc7 |
Version: 2.6.1
|
|
|
b18dfc7 |
Release: 1%{?dist}
|
|
|
caeab3c |
Summary: JavaScript parser, mangler/compressor and beautifier toolkit
|
|
|
caeab3c |
BuildArch: noarch
|
|
|
caeab3c |
|
|
|
caeab3c |
Group: Development/Tools
|
|
|
caeab3c |
License: BSD
|
|
|
caeab3c |
URL: https://github.com/mishoo/UglifyJS2
|
|
|
b18dfc7 |
Source0: https://github.com/mishoo/UglifyJS2/archive/v%{version}/uglify-js-%{version}.tar.gz
|
|
|
b18dfc7 |
Patch0: uglify-js-esfuzz.patch
|
|
|
3dd99c6 |
|
|
|
3dd99c6 |
BuildArch: noarch
|
|
|
3dd99c6 |
%if 0%{?fedora} >= 19
|
|
|
b18dfc7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
3dd99c6 |
%else
|
|
|
b18dfc7 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
3dd99c6 |
%endif
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
Provides: nodejs-uglify-js = %{version}-%{release}
|
|
|
8f5c5b4 |
|
|
|
22cd933 |
BuildRequires: nodejs-packaging
|
|
|
5247121 |
|
|
|
5247121 |
%if 0%{?fedora}
|
|
|
8f5c5b4 |
BuildRequires: web-assets-devel
|
|
|
5247121 |
%endif
|
|
|
caeab3c |
|
|
|
caeab3c |
%if 0%{?enable_tests}
|
|
|
b679f9b |
BuildRequires: npm(async)
|
|
|
caeab3c |
BuildRequires: npm(optimist)
|
|
|
caeab3c |
BuildRequires: npm(source-map)
|
|
|
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 |
Group: System Environment/Libraries
|
|
|
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
|
|
|
b18dfc7 |
%autosetup -p 1 -n UglifyJS2-%{version}
|
|
|
caeab3c |
|
|
|
37a4aaf |
%nodejs_fixdep async "^1.5.0"
|
|
|
b18dfc7 |
%nodejs_fixdep yargs "^3.2.1"
|
|
|
b18dfc7 |
|
|
|
2730c01 |
|
|
|
caeab3c |
%build
|
|
|
caeab3c |
#nothing to do
|
|
|
caeab3c |
|
|
|
b18dfc7 |
|
|
|
caeab3c |
%install
|
|
|
caeab3c |
rm -rf %buildroot
|
|
|
caeab3c |
|
|
|
5247121 |
mkdir -p %{buildroot}%{installdir}/%{name}-2
|
|
|
5247121 |
cp -pr lib/* %{buildroot}%{installdir}/%{name}-2
|
|
|
5247121 |
ln -sf %{name}-2 %{buildroot}%{installdir}/%{name}
|
|
|
8f5c5b4 |
|
|
|
8f5c5b4 |
#compat symlink
|
|
|
8f5c5b4 |
mkdir -p %{buildroot}%{_datadir}
|
|
|
8f5c5b4 |
ln -sf javascript/%{name} %{buildroot}%{_datadir}/%{name}
|
|
|
caeab3c |
|
|
|
22cd933 |
mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@2
|
|
|
22cd933 |
cp -pr bin tools package.json %{buildroot}%{nodejs_sitelib}/uglify-js@2
|
|
|
5247121 |
ln -sf %{installdir}/%{name} %{buildroot}%{nodejs_sitelib}/uglify-js@2/lib
|
|
|
caeab3c |
|
|
|
caeab3c |
mkdir -p %{buildroot}%{_bindir}
|
|
|
22cd933 |
ln -sf ../lib/node_modules/uglify-js@2/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs
|
|
|
caeab3c |
|
|
|
cbffd93 |
%nodejs_symlink_deps
|
|
|
caeab3c |
|
|
|
22cd933 |
ln -sf uglify-js@2 %{buildroot}%{nodejs_sitelib}/uglify-js
|
|
|
22cd933 |
|
|
|
b18dfc7 |
|
|
|
caeab3c |
%if 0%{?enable_tests}
|
|
|
caeab3c |
%check
|
|
|
22cd933 |
%nodejs_symlink_deps --check
|
|
|
caeab3c |
%__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
|
|
|
caeab3c |
%defattr(-,root,root,-)
|
|
|
22cd933 |
%{nodejs_sitelib}/uglify-js
|
|
|
22cd933 |
%{nodejs_sitelib}/uglify-js@2
|
|
|
caeab3c |
%{_bindir}/uglifyjs
|
|
|
caeab3c |
|
|
|
b18dfc7 |
|
|
|
8f5c5b4 |
%files -n js-uglify
|
|
|
caeab3c |
%defattr(-,root,root,-)
|
|
|
5247121 |
%{installdir}/%{name}-2
|
|
|
5247121 |
%{installdir}/%{name}
|
|
|
caeab3c |
%{_datadir}/%{name}
|
|
|
b18dfc7 |
%doc README.md
|
|
|
b18dfc7 |
%license LICENSE
|
|
|
caeab3c |
|
|
|
8f5c5b4 |
|
|
|
caeab3c |
%changelog
|
|
|
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
|