diff --git a/uglify-js.spec b/uglify-js.spec index 35ed3b2..fa5c5ef 100644 --- a/uglify-js.spec +++ b/uglify-js.spec @@ -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 - 2.2.4-2 - install tools dir +- enable tests * Wed Feb 13 2013 T.C. Hollingsworth - 2.2.4-1 - new upstream release 2.2.4