Blame SPECS/nodejs-concat-stream.spec

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