%global shortname carrier Name: nodejs-carrier Version: 0.1.14 Release: 1%{?dist} Summary: Evented stream line reader for node.js License: MIT URL: https://github.com/pgte/%{shortname} Source0: http://registry.npmjs.org/%{shortname}/-/%{shortname}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging # tap is a test dependency BuildRequires: nodejs-tap %description %{shortname} helps you implement new-line terminated protocols over node.js. The client can send you chunks of lines and carrier will only notify you on each completed line %prep %setup -qn package %build # Nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{shortname}/ cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/%{shortname} %nodejs_symlink_deps %check %nodejs_symlink_deps --check for test in $(ls test/); do node test/${test} done %files %{nodejs_sitelib}/%{shortname} %doc README.markdown %license LICENSE %changelog * Sat Mar 07 2015 Gerard Ryan - 0.1.14-1 - Initial package