# test are failing %global enable_tests 0 %global module_name through2 %global commit0 6424ae6178834bb978ce3c3c033fa2d0398b0e14 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: nodejs-%{module_name} Version: 2.0.0 Release: 1%{?dist} Summary: Node streams2 Transform wrapper to avoid explicit subclassing noise License: MITNFA URL: https://github.com/rvagg/through2 Source0: https://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) BuildRequires: npm(tape) BuildRequires: npm(xtend) BuildRequires: npm(bl) BuildRequires: npm(stream-spigot) %endif %description A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise. %prep %setup -q -n package rm -rf node_modules %build # nothing to build %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check node test/test.js %endif %files %doc README.md LICENSE %{nodejs_sitelib}/%{module_name} %changelog * Tue Oct 20 2015 Jared Smith - 2.0.0-1 - Update to upstream 2.0.0 release * Wed Jul 22 2015 Parag Nemade - 0.1.3-4 - Update to 2.0.0 - disable tests * Wed Jun 17 2015 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Dec 22 2014 Parag Nemade - 0.6.3-1 - Initial packaging