The package rpms/nodejs-add-stream.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/nodejs-add-stream.git/commit/?id=8c2....
Change: +ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Thanks.
Full change: ============
commit 8c25873b32e3857d5570d2ef328689bf8fd95bd5 Author: Jared Smith jsmith@fedoraproject.org Date: Tue Apr 24 12:35:52 2018 -0400
Initial packaging
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fce75ac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/add-stream-1.0.0.tgz diff --git a/README.md b/README.md index a538d74..d172004 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,46 @@ -# nodejs-add-stream +# add-stream [![Build Status](https://travis-ci.org/wilsonjackson/add-stream.svg?branch=master)%5D(https:/...)
-'Append the contents of one stream onto another' \ No newline at end of file +> Append the contents of one stream onto another. + +## Usage + +```js +var fs = require('fs'); +var es = require('event-stream'); +var addStream = require('add-stream'); + +// Append strings/buffers +fs.createReadStream('1.txt') // 1.txt contains: number1 + .pipe(addStream(fs.createReadStream('2.txt'))) // 2.txt contains: number2 + .pipe(fs.createWriteStream('appended.txt')); // appended.txt contains: number1number2 + +// Append object streams +es.readArray([1, 2, 3]) + .pipe(addStream.obj(es.readArray([4, 5, 6]))) + .pipe(es.writeArray(function (err, array) { + console.log(array); // [ 1, 2, 3, 4, 5, 6 ] + })); +``` + +## API + +### var transformStream = addStream(stream, opts = {}) + +Create a transform stream that appends the contents of `stream` onto whatever +is piped into it. Options are passed to the transform stream's constructor. + +### var transformStream = addStream.obj(stream, opts = {}) + +A convenient shortcut for `addStream(stream, {objectMode: true})`. + +## License + +MIT + +Copyright (c) 2017 Majid Burney + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/nodejs-add-stream.spec b/nodejs-add-stream.spec new file mode 100644 index 0000000..fa5e56c --- /dev/null +++ b/nodejs-add-stream.spec @@ -0,0 +1,67 @@ +%{?nodejs_find_provides_and_requires} + +%global packagename add-stream +%global enable_tests 1 + +Name: nodejs-add-stream +Version: 1.0.0 +Release: 1%{?dist} +Summary: Append the contents of one stream onto another + +License: MIT +URL: https://github.com/wilsonjackson/add-stream +Source0: https://registry.npmjs.org/%%7Bpackagename%7D/-/%%7Bpackagename%7D-%%7Bversi... +# License text is in README.md on master branch +Source1: https://raw.githubusercontent.com/wilsonjackson/add-stream/master/README.md + + +BuildArch: noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: mocha +BuildRequires: npm(chai) +BuildRequires: npm(event-stream) +%endif + +%description +Append the contents of one stream onto another. + + +%prep +%autosetup -n package +cp -p %{SOURCE1} temp.md +sed -n '/## License/,$p' temp.md > LICENSE.md +rm temp.md + + +%build +# nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} +NODE_ENV=test %{_bindir}/mocha -R spec -u exports +%else +%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE.md +%{nodejs_sitelib}/%{packagename} + +%changelog +* Wed Feb 21 2018 Jared Smith jsmith@fedoraproject.org - 1.0.0-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..54bf084 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (add-stream-1.0.0.tgz) = a902ccafef28d160b81591904dc262281542e7d27295c3d2ad3b64eaeb2f9880c550e08a7a06a9cb554743045b14c385c9bfe29f3515a87b3e78c60a0ccd5879