diff --git a/nodejs-raw-body.spec b/nodejs-raw-body.spec index 3aec9f7..7472ed8 100644 --- a/nodejs-raw-body.spec +++ b/nodejs-raw-body.spec @@ -1,10 +1,10 @@ %{?nodejs_find_provides_and_requires} -%global enable_tests 0 +%global enable_tests 1 Name: nodejs-raw-body Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Get and validate the raw body of a readable stream License: MIT URL: https://github.com/stream-utils/raw-body @@ -15,13 +15,8 @@ Source0: http://registry.npmjs.org/raw-body/-/raw-body-%{version}.tgz Source1: tests-%{version}.tar.bz2 Source10: dl-tests.sh -BuildArch: noarch -%if 0%{?fedora} >= 19 -ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif - +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} @@ -53,7 +48,7 @@ It is ideal for parsing request bodies. %setup -q -T -D -a 1 -n package %nodejs_fixdep bytes --caret -%nodejs_fixdep iconv-lite --caret +%nodejs_fixdep iconv-lite '<0.5.0' %nodejs_fixdep unpipe --caret %build @@ -70,10 +65,11 @@ cp -pr package.json index.js \ %if 0%{?enable_tests} %check +%{__nodejs} -e 'require("./")' %nodejs_symlink_deps --check mocha --trace-deprecation --reporter spec --bail --check-leaks test/ -istanbul cover usr/bin/mocha -- --trace-deprecation --reporter dot --check-leaks test/ -istanbul cover usr/bin/mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/ +istanbul-js cover mocha -- --trace-deprecation --reporter dot --check-leaks test/ +istanbul-js cover mocha --report lcovonly -- --trace-deprecation --reporter spec --check-leaks test/ %endif @@ -83,6 +79,9 @@ istanbul cover usr/bin/mocha --report lcovonly -- --trace-deprecation --reporter %changelog +* Fri Feb 24 2017 Zuzana Svetlikova - 2.2.0-2 +- Update spec + * Mon Feb 13 2017 Zuzana Svetlikova - 2.2.0-1 - Update