|
|
9795f4 |
%{?scl:%scl_package nodejs-concat-stream}
|
|
|
9795f4 |
%{!?scl:%global pkg_name %{name}}
|
|
|
9795f4 |
|
|
|
9795f4 |
%{?nodejs_find_provides_and_requires}
|
|
|
9795f4 |
|
|
|
9795f4 |
%global enable_tests 0
|
|
|
9795f4 |
|
|
|
9795f4 |
Name: %{?scl_prefix}nodejs-concat-stream
|
|
|
9795f4 |
Version: 1.4.4
|
|
|
9795f4 |
Release: 5%{?dist}
|
|
|
9795f4 |
Summary: Writable stream that concatenates data and calls a callback with the result
|
|
|
9795f4 |
License: MIT
|
|
|
9795f4 |
Group: System Environment/Libraries
|
|
|
9795f4 |
URL: https://github.com/maxogden/node-concat-stream
|
|
|
9795f4 |
Source0: http://registry.npmjs.org/concat-stream/-/concat-stream-%{version}.tgz
|
|
|
9795f4 |
|
|
|
9795f4 |
# Use 'stream' module from Node.js core instead of npm(readable-stream).
|
|
|
9795f4 |
Patch0: %{pkg_name}-1.4.4-Use-stream-from-Node.js-core.patch
|
|
|
9795f4 |
# npm(typedarray) is taken from https://github.com/inexorabletash/polyfill
|
|
|
9795f4 |
# and is for supporting IE-9. But it appears that npm(concat-stream) only
|
|
|
9795f4 |
# supports IE>=10 so there doesn't seem to be a compelling reason to use
|
|
|
9795f4 |
# typedarray instead of a native `new Uint8Array(len)`.
|
|
|
9795f4 |
Patch1: %{pkg_name}-1.4.4-Remove-dependency-on-typedarray.patch
|
|
|
9795f4 |
|
|
|
9795f4 |
BuildArch: noarch
|
|
|
9795f4 |
%if 0%{?fedora} >= 19
|
|
|
9795f4 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
9795f4 |
%else
|
|
|
9795f4 |
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
9795f4 |
%endif
|
|
|
9795f4 |
|
|
|
9795f4 |
BuildRequires: nodejs010-runtime
|
|
|
9795f4 |
|
|
|
9795f4 |
%if 0%{?enable_tests}
|
|
|
9795f4 |
BuildRequires: %{?scl_prefix}npm(inherits)
|
|
|
9795f4 |
BuildRequires: %{?scl_prefix}npm(tape)
|
|
|
9795f4 |
%endif
|
|
|
9795f4 |
|
|
|
9795f4 |
%description
|
|
|
9795f4 |
%{summary}.
|
|
|
9795f4 |
|
|
|
9795f4 |
%prep
|
|
|
9795f4 |
%setup -q -n package
|
|
|
9795f4 |
%patch0 -p1
|
|
|
9795f4 |
%patch1 -p1
|
|
|
9795f4 |
%nodejs_fixdep inherits '~2.0.0'
|
|
|
9795f4 |
|
|
|
9795f4 |
%build
|
|
|
9795f4 |
#nothing to do
|
|
|
9795f4 |
|
|
|
9795f4 |
%install
|
|
|
9795f4 |
mkdir -p %{buildroot}%{nodejs_sitelib}/concat-stream
|
|
|
9795f4 |
cp -pr package.json index.js \
|
|
|
9795f4 |
%{buildroot}%{nodejs_sitelib}/concat-stream
|
|
|
9795f4 |
|
|
|
9795f4 |
%nodejs_symlink_deps
|
|
|
9795f4 |
|
|
|
9795f4 |
|
|
|
9795f4 |
%if 0%{?enable_tests}
|
|
|
9795f4 |
|
|
|
9795f4 |
%check
|
|
|
9795f4 |
%nodejs_symlink_deps --check
|
|
|
9795f4 |
/usr/bin/tape test/*.js test/server/*.js
|
|
|
9795f4 |
%endif
|
|
|
9795f4 |
|
|
|
9795f4 |
%files
|
|
|
9795f4 |
%doc LICENSE readme.md
|
|
|
9795f4 |
%{nodejs_sitelib}/concat-stream
|
|
|
9795f4 |
|
|
|
9795f4 |
%changelog
|
|
|
9795f4 |
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 1.4.4-5
|
|
|
9795f4 |
- Enable SCL macros
|
|
|
9795f4 |
|
|
|
9795f4 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-4
|
|
|
9795f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
9795f4 |
|
|
|
9795f4 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3
|
|
|
9795f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
9795f4 |
|
|
|
9795f4 |
* Wed Mar 19 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.4-2
|
|
|
9795f4 |
- add missing BR: npm(inherits)
|
|
|
9795f4 |
|
|
|
9795f4 |
* Thu Mar 13 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.4.4-1
|
|
|
9795f4 |
- initial package
|