diff --git a/nodejs-strip-indent.spec b/nodejs-strip-indent.spec index 9fcb506..d84e9cb 100644 --- a/nodejs-strip-indent.spec +++ b/nodejs-strip-indent.spec @@ -7,7 +7,7 @@ Name: nodejs-%{srcname} Version: 1.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Strip leading whitespace from every line in a string License: MIT URL: https://github.com/sindresorhus/strip-indent @@ -28,6 +28,7 @@ BuildRequires: npm(mocha) %prep %setup -qn %{srcname}-%{commit0} rm -rf node_modules +%nodejs_fixdep get-stdin '5.x' %build #nothing to do @@ -42,9 +43,10 @@ ln -s %{nodejs_sitelib}/%{srcname}/cli.js %{buildroot}%{_bindir}/strip-indent %nodejs_symlink_deps -%if 0%{?enable_tests} %check %nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} mocha %endif @@ -55,5 +57,8 @@ mocha %{_bindir}/%{srcname} %changelog +* Mon Dec 14 2015 Piotr Popieluch - 1.0.1-2 +- Fixdep get-stdin + * Sat Aug 29 2015 Piotr Popieluch - 1.0.1-1 - Initial package