diff --git a/nodejs-grunt-legacy-log-utils.spec b/nodejs-grunt-legacy-log-utils.spec index 3f5e0b0..e9eff22 100644 --- a/nodejs-grunt-legacy-log-utils.spec +++ b/nodejs-grunt-legacy-log-utils.spec @@ -1,5 +1,7 @@ %{?nodejs_find_provides_and_requires} +%global enable_tests 0 + %global srcname grunt-legacy-log-utils Name: nodejs-grunt-legacy-log-utils @@ -17,10 +19,12 @@ ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging +%if 0%{?enable_tests} BuildRequires: npm(grunt-contrib-nodeunit) BuildRequires: npm(lodash) BuildRequires: npm(chalk) BuildRequires: npm(grunt-cli) +%endif %description @@ -42,9 +46,11 @@ cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/grunt-legacy-log-util %nodejs_symlink_deps +%if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/grunt nodeunit +%endif %files