[nodejs-stream-counter] Initial import
Jamie Nguyen
jamielinux at fedoraproject.org
Wed Mar 12 12:44:25 UTC 2014
commit 620431fa122dd34429bd5dfe0479e26a0a8dfa04
Author: Jamie Nguyen <j at jamielinux.com>
Date: Wed Mar 12 12:44:09 2014 +0000
Initial import
.gitignore | 1 +
LICENSE | 23 +++++++
nodejs-stream-counter-0.2.0-Use-Node.js-core.patch | 24 +++++++
nodejs-stream-counter.spec | 66 ++++++++++++++++++++
sources | 1 +
5 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..79bb229 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/stream-counter-0.2.0.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..5dd29eb
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,23 @@
+All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of highlight.js nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/nodejs-stream-counter-0.2.0-Use-Node.js-core.patch b/nodejs-stream-counter-0.2.0-Use-Node.js-core.patch
new file mode 100644
index 0000000..6b4eb10
--- /dev/null
+++ b/nodejs-stream-counter-0.2.0-Use-Node.js-core.patch
@@ -0,0 +1,24 @@
+From 9a5a5f5c6b4b3bf00988c36fc0352f8fcbe48886 Mon Sep 17 00:00:00 2001
+From: Jamie Nguyen <j at jamielinux.com>
+Date: Sun, 2 Mar 2014 20:09:55 +0000
+Subject: [PATCH] Use Node.js core instead of readable-stream
+
+---
+ index.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/index.js b/index.js
+index c490c2d..8b46cfe 100644
+--- a/index.js
++++ b/index.js
+@@ -1,6 +1,6 @@
+ module.exports = ByteCounter;
+
+-var Writable = require('readable-stream').Writable;
++var Writable = require('stream').Writable;
+ var util = require('util');
+
+ util.inherits(ByteCounter, Writable);
+--
+1.8.5.3
+
diff --git a/nodejs-stream-counter.spec b/nodejs-stream-counter.spec
new file mode 100644
index 0000000..643d2ee
--- /dev/null
+++ b/nodejs-stream-counter.spec
@@ -0,0 +1,66 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name: nodejs-stream-counter
+Version: 0.2.0
+Release: 1%{?dist}
+Summary: Keeps track of how many bytes have been written to a stream
+License: BSD
+Group: System Environment/Libraries
+URL: https://github.com/superjoe30/node-stream-counter
+Source0: http://registry.npmjs.org/stream-counter/-/stream-counter-%{version}.tgz
+# Upstream have relicensed to MIT upstream, but this release remains under
+# BSD license. Include a copy to comply with license requirements.
+Source10: LICENSE
+
+# Use Node.js core instead of the forked npm(readable-stream)
+Patch0: %{name}-0.2.0-Use-Node.js-core.patch
+
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+%patch0 -p1
+%nodejs_fixdep -r readable-stream
+cp -a %{SOURCE10} .
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/stream-counter
+cp -pr package.json index.js \
+ %{buildroot}%{nodejs_sitelib}/stream-counter
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+%__nodejs test/test.js
+%endif
+
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/stream-counter
+
+
+%changelog
+* Sun Mar 02 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.2.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..e61c136 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6fa423c04e3d5785b6906e028db5d8eb stream-counter-0.2.0.tgz
More information about the scm-commits
mailing list