# This macro is needed at the start for building on EL6 %{?nodejs_find_provides_and_requires} # Note upstream does not package test files in tarball %global enable_tests 0 %global barename readable-stream Name: nodejs-readable-stream Version: 2.0.2 Release: 1%{?dist} Summary: Streams3, a user-land copy of the stream library from Node.js v0.10.x Group: Development/Libraries License: MIT URL: https://www.npmjs.org/package/readable-stream Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging >= 6 BuildRequires: npm(core-util-is) BuildRequires: npm(debuglog) Requires: npm(core-util-is) Requires: npm(debuglog) %if 0%{?enable_tests} BuildRequires: npm(tap) %endif %description This package is a mirror of the Streams2 and Streams3 implementations in Node-core. %prep %setup -q -n package # Remove bundled node_modules if there are any.. rm -rf node_modules/ %nodejs_fixdep --caret %build %nodejs_symlink_deps --build %install mkdir -p %{buildroot}%{nodejs_sitelib}/readable-stream cp -pr package.json lib duplex.js passthrough.js writable.js transform.js readable.js \ %{buildroot}%{nodejs_sitelib}/readable-stream %nodejs_symlink_deps %check %if 0%{?enable_tests} %nodejs_symlink_deps --check tap test/parallel/*.js %endif %files %doc README.md LICENSE %{nodejs_sitelib}/readable-stream/ %changelog * Sat Jul 18 2015 Parag Nemade - 2.0.2-1 - Update to 2.0.2 version * Wed Jun 17 2015 Fedora Release Engineering - 1.1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 14 2015 Ralph Bean - 1.1.13-1 - new version * Tue Jul 22 2014 Ralph Bean - 1.1.9-1 - Initial packaging for Fedora.