diff --git a/nodejs-readable-stream.spec b/nodejs-readable-stream.spec new file mode 100644 index 0000000..2044b8d --- /dev/null +++ b/nodejs-readable-stream.spec @@ -0,0 +1,52 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +%global packagename readable-stream +%global owner nodejs +Name: nodejs-readable-stream +Version: 2.3.6 +Release: 1 +Summary: Streams3, a user-land copy of the stream library from Node.js +License: MIT +URL: https://www.npmjs.org/package/readable-stream +Source0: https://github.com/nodejs/readable-stream/archive/v%{version}/readable-stream-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging >= 6 +BuildRequires: npm(core-util-is) nodejs-inherits1 npm(isarray) npm(process-nextick-args) +BuildRequires: npm(safe-buffer) npm(string_decoder) npm(util-deprecate) nodejs-inherits +%if 0%{?enable_tests} +BuildRequires: npm(babel-polyfill) npm(tap) npm(tape) +%endif +%description +This package is a mirror of the Streams2 and Streams3 implementations in +Node-core. + +%prep +%autosetup -n %{packagename}-%{version} +rm -rf node_modules/ +%nodejs_fixdep isarray '~0.0.1' +%nodejs_fixdep string_decoder '~0.10.1' + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/readable-stream +cp -pr package.json lib *.js \ + %{buildroot}%{nodejs_sitelib}/readable-stream +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +tap test/parallel/*.js test/ours/*.js +%endif + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/readable-stream/ + +%changelog +* Fri Aug 14 2020 wangyue - 2.3.6-1 +- Package init diff --git a/nodejs-readable-stream.yaml b/nodejs-readable-stream.yaml new file mode 100644 index 0000000..936a4ae --- /dev/null +++ b/nodejs-readable-stream.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/nodejs/readable-stream/ +version_control: github +src_repo: nodejs/readable-stream +tag_prefix: "^v" +seperator: "." diff --git a/readable-stream-2.3.6.tar.gz b/readable-stream-2.3.6.tar.gz new file mode 100644 index 0000000..c97187f Binary files /dev/null and b/readable-stream-2.3.6.tar.gz differ