%{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-concat-stream Version: 1.6.0 Release: 1%{?dist} Summary: Writable stream that concatenates data and calls a callback with the result License: MIT Group: System Environment/Libraries 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 -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 * Mon May 08 2017 Jared Smith - 1.6.0-1 - Update to upstream 1.6.0 release * Fri Feb 10 2017 Fedora Release Engineering - 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 17 2016 Tom Hughes - 1.5.1-1 - Update to 1.5.1 upstream release * Wed Jun 17 2015 Fedora Release Engineering - 1.4.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Mar 19 2014 Jamie Nguyen - 1.4.4-2 - add missing BR: npm(inherits) * Thu Mar 13 2014 Jamie Nguyen - 1.4.4-1 - initial package