fuanan add package
This commit is contained in:
parent
5bbe30cf58
commit
94306d08df
BIN
concat-stream-1.6.0.tar.gz
Normal file
BIN
concat-stream-1.6.0.tar.gz
Normal file
Binary file not shown.
60
nodejs-concat-stream-typedarray.patch
Normal file
60
nodejs-concat-stream-typedarray.patch
Normal file
@ -0,0 +1,60 @@
|
||||
commit 845a8c5172bbab80b2af72e3a73d1ccf14477a2e
|
||||
Author: Tom Hughes <tom@compton.nu>
|
||||
Date: Sun Jan 17 16:37:10 2016 +0000
|
||||
|
||||
Only require typedarray if necessary
|
||||
|
||||
diff --git a/test/buffer.js b/test/buffer.js
|
||||
index d28f5f9..fa7127f 100644
|
||||
--- a/test/buffer.js
|
||||
+++ b/test/buffer.js
|
||||
@@ -1,7 +1,11 @@
|
||||
var concat = require('../')
|
||||
var test = require('tape')
|
||||
-var TA = require('typedarray')
|
||||
-var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
|
||||
+
|
||||
+if (typeof Uint8Array === 'undefined') {
|
||||
+ var U8 = require('typedarray').Uint8Array
|
||||
+} else {
|
||||
+ var U8 = Uint8Array
|
||||
+}
|
||||
|
||||
test('buffer stream', function (t) {
|
||||
t.plan(2)
|
||||
diff --git a/test/string.js b/test/string.js
|
||||
index 218c522..29001f4 100644
|
||||
--- a/test/string.js
|
||||
+++ b/test/string.js
|
||||
@@ -1,7 +1,11 @@
|
||||
var concat = require('../')
|
||||
var test = require('tape')
|
||||
-var TA = require('typedarray')
|
||||
-var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
|
||||
+
|
||||
+if (typeof Uint8Array === 'undefined') {
|
||||
+ var U8 = require('typedarray').Uint8Array
|
||||
+} else {
|
||||
+ var U8 = Uint8Array
|
||||
+}
|
||||
|
||||
test('string -> buffer stream', function (t) {
|
||||
t.plan(2)
|
||||
diff --git a/test/typedarray.js b/test/typedarray.js
|
||||
index ee07110..fffda88 100644
|
||||
--- a/test/typedarray.js
|
||||
+++ b/test/typedarray.js
|
||||
@@ -1,7 +1,11 @@
|
||||
var concat = require('../')
|
||||
var test = require('tape')
|
||||
-var TA = require('typedarray')
|
||||
-var U8 = typeof Uint8Array !== 'undefined' ? Uint8Array : TA.Uint8Array
|
||||
+
|
||||
+if (typeof Uint8Array === 'undefined') {
|
||||
+ var U8 = require('typedarray').Uint8Array
|
||||
+} else {
|
||||
+ var U8 = Uint8Array
|
||||
+}
|
||||
|
||||
test('typed array stream', function (t) {
|
||||
t.plan(2)
|
||||
48
nodejs-concat-stream.spec
Normal file
48
nodejs-concat-stream.spec
Normal file
@ -0,0 +1,48 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
%global enable_tests 1
|
||||
Name: nodejs-concat-stream
|
||||
Version: 1.6.0
|
||||
Release: 1
|
||||
Summary: Writable stream that concatenates data and calls a callback with the result
|
||||
License: MIT
|
||||
URL: https://github.com/maxogden/concat-stream
|
||||
Source0: https://github.com/maxogden/concat-stream/archive/v%{version}/concat-stream-%{version}.tar.gz
|
||||
Patch0: nodejs-concat-stream-typedarray.patch
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tape) npm(inherits) npm(readable-stream)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -p 1 -n concat-stream-%{version}
|
||||
%nodejs_fixdep readable-stream '^2.0.5'
|
||||
%nodejs_fixdep -r typedarray
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/concat-stream
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_sitelib}/concat-stream
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
/usr/bin/tape test/*.js test/server/*.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc readme.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/concat-stream
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 Anan Fu <fuanan3@huawei.com> - 1.6.0-1
|
||||
- package init
|
||||
105
nodejs-concat-stream.spec.old
Normal file
105
nodejs-concat-stream.spec.old
Normal file
@ -0,0 +1,105 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
|
||||
%global enable_tests 1
|
||||
|
||||
Name: nodejs-concat-stream
|
||||
Version: 1.6.0
|
||||
Release: 6%{?dist}
|
||||
Summary: Writable stream that concatenates data and calls a callback with the result
|
||||
License: MIT
|
||||
URL: https://github.com/maxogden/concat-stream
|
||||
Source0: https://github.com/maxogden/concat-stream/archive/v%{version}/concat-stream-%{version}.tar.gz
|
||||
# https://github.com/maxogden/concat-stream/pull/43
|
||||
Patch0: nodejs-concat-stream-typedarray.patch
|
||||
BuildArch: noarch
|
||||
|
||||
%if 0%{?fedora} >= 19
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
%else
|
||||
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
||||
%endif
|
||||
|
||||
BuildRequires: nodejs-packaging
|
||||
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tape)
|
||||
BuildRequires: npm(inherits)
|
||||
BuildRequires: npm(readable-stream)
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p 1 -n concat-stream-%{version}
|
||||
|
||||
%nodejs_fixdep readable-stream '^2.0.5'
|
||||
%nodejs_fixdep -r typedarray
|
||||
|
||||
|
||||
%build
|
||||
#nothing to do
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/concat-stream
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_sitelib}/concat-stream
|
||||
|
||||
%nodejs_symlink_deps
|
||||
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
%if 0%{?enable_tests}
|
||||
/usr/bin/tape test/*.js test/server/*.js
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%doc readme.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/concat-stream
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Wed May 31 2017 Jared Smith <jsmith@fedoraproject.org> - 1.6.0-2
|
||||
- Relax dependency on npm(readable-stream)
|
||||
|
||||
* Mon May 08 2017 Jared Smith <jsmith@fedoraproject.org> - 1.6.0-1
|
||||
- Update to upstream 1.6.0 release
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sun Jan 17 2016 Tom Hughes <tom@compton.nu> - 1.5.1-1
|
||||
- Update to 1.5.1 upstream release
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Wed Mar 19 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.4-2
|
||||
- add missing BR: npm(inherits)
|
||||
|
||||
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.4-1
|
||||
- initial package
|
||||
4
nodejs-concat-stream.yaml
Normal file
4
nodejs-concat-stream.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: maxogden/concat-stream
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user