diff --git a/2.2.0.tar.gz b/2.2.0.tar.gz new file mode 100644 index 0000000..7d33f48 Binary files /dev/null and b/2.2.0.tar.gz differ diff --git a/nodejs-raw-body.spec b/nodejs-raw-body.spec index 3cac6d8..ebec871 100644 --- a/nodejs-raw-body.spec +++ b/nodejs-raw-body.spec @@ -8,13 +8,7 @@ Release: 1 Summary: Get and validate the raw body of a readable stream License: MIT URL: https://github.com/stream-utils/raw-body -Source0: http://registry.npmjs.org/raw-body/-/raw-body-%{version}.tgz -#git clone git://github.com/stream-utils/raw-body.git -#cd raw-body -#git archive --prefix="test/" --format=tar tags/${tag}:test/ \ -# | bzip2 > "$pwd"/tests-${tag}.tar.bz2 -Source1: tests-%{version}.tar.bz2 - +Source0: https://github.com/stream-utils/raw-body/archive/%{version}.tar.gz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging @@ -24,6 +18,12 @@ BuildRequires: npm(bytes) npm(iconv-lite) npm(unpipe) BuildRequires: npm(bluebird) npm(istanbul) Buildrequires: npm(mocha) BuildRequires: npm(readable-stream) npm(through2) +# not packaged +# BuildRequires: npm(eslint) +# BuildRequires: npm(eslint-config-standard) +# BuildRequires: npm(eslint-plugin-markdown) +# BuildRequires: npm(eslint-plugin-promise) +# BuildRequires: npm(eslint-plugin-standard) %endif %description @@ -31,9 +31,10 @@ This module gets the entire buffer of a stream either as a buffer or a string. It validates the stream's length against an expected length and maximum limit. It is ideal for parsing request bodies. + %prep -%setup -q -n package -%setup -q -T -D -a 1 -n package +%autosetup -n raw-body-%{version} + %nodejs_fixdep bytes --caret %nodejs_fixdep iconv-lite '<0.5.0' %nodejs_fixdep unpipe --caret @@ -41,6 +42,7 @@ It is ideal for parsing request bodies. %build #nothing to do + %install mkdir -p %{buildroot}%{nodejs_sitelib}/raw-body cp -pr package.json index.js \ @@ -48,6 +50,7 @@ cp -pr package.json index.js \ %nodejs_symlink_deps + %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' @@ -58,6 +61,7 @@ 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 + %files %doc README.md %license LICENSE diff --git a/raw-body-2.2.0.tgz b/raw-body-2.2.0.tgz deleted file mode 100644 index 6b9d7e9..0000000 Binary files a/raw-body-2.2.0.tgz and /dev/null differ diff --git a/tests-2.2.0.tar.bz2 b/tests-2.2.0.tar.bz2 deleted file mode 100644 index af3b6f6..0000000 Binary files a/tests-2.2.0.tar.bz2 and /dev/null differ