From fb49d1ec782a5e6672356375e96ebf296494b648 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Dec 04 2015 13:41:15 +0000 Subject: Initial import of nodejs-buffer-writer --- diff --git a/.gitignore b/.gitignore index e69de29..04df87a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/buffer-writer-1.0.0.tgz diff --git a/nodejs-buffer-writer-license.txt b/nodejs-buffer-writer-license.txt new file mode 100644 index 0000000..72dc60d --- /dev/null +++ b/nodejs-buffer-writer-license.txt @@ -0,0 +1,19 @@ +The MIT License (MIT) + +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-buffer-writer.spec b/nodejs-buffer-writer.spec new file mode 100644 index 0000000..705911d --- /dev/null +++ b/nodejs-buffer-writer.spec @@ -0,0 +1,54 @@ +%{?nodejs_find_provides_and_requires} + +Name: nodejs-buffer-writer +Version: 1.0.0 +Release: 1%{?dist} +Summary: Read binary packets... + +License: MIT +URL: https://www.npmjs.com/package/buffer-writer +Source0: https://registry.npmjs.org/buffer-writer/-/buffer-writer-%{version}.tgz +# https://github.com/brianc/node-buffer-writer/pull/2 +Source1: nodejs-buffer-writer-license.txt +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +BuildRequires: npm(mocha) + + +%description +%{summary} + + +%prep +%autosetup -n package +cp %{SOURCE1} LICENSE +rm -rf node_modules + + +%build + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/buffer-writer +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/buffer-writer +%nodejs_symlink_deps + + +%check +%nodejs_symlink_deps --check +%{nodejs_sitelib}/mocha/bin/mocha + + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE +%{nodejs_sitelib}/buffer-writer + + +%changelog +* Thu Dec 3 2015 Tom Hughes - 1.0.0-1 +- Initial build of 1.0.0 diff --git a/sources b/sources index e69de29..9591b55 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5840b37558af6692ef86038264f7b5a2 buffer-writer-1.0.0.tgz