|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
#enable/disable tests in case the deps aren't there
|
|
|
|
|
%global enable_tests 0
|
|
|
|
|
%global enable_tests 1
|
|
|
|
|
|
|
|
|
|
Name: uglify-js
|
|
|
|
|
Version: 2.2.4
|
|
|
|
@ -63,6 +63,9 @@ ln -sf ../lib/node_modules/uglify-js/bin/uglifyjs %{buildroot}%{_bindir}/uglifyj
|
|
|
|
|
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
%check
|
|
|
|
|
mkdir -p node_modules
|
|
|
|
|
ln -sf %{nodejs_sitelib}/source-map node_modules/source-map
|
|
|
|
|
ln -sf %{nodejs_sitelib}/optimist node_modules/optimist
|
|
|
|
|
%__nodejs test/run-tests.js
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -82,6 +85,7 @@ rm -rf %buildroot
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-2
|
|
|
|
|
- install tools dir
|
|
|
|
|
- enable tests
|
|
|
|
|
|
|
|
|
|
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.2.4-1
|
|
|
|
|
- new upstream release 2.2.4
|
|
|
|
|