%{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-propagate Version: 0.3.0 Release: 3%{?dist} Summary: Propagate events from one event emitter into another License: MIT URL: https://github.com/pgte/propagate Source: https://github.com/pgte/propagate/archive/v%{version}.tar.gz 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(debug) BuildRequires: npm(tap) %endif %description Propagate events from one event emitter into another event %prep %setup -q -n propagate-%{version} %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/nodejs-propagate cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/nodejs-propagate %nodejs_symlink_deps %check %if 0%{?enable_tests} %nodejs_symlink_deps --check tap tests/index.js %endif %files %doc README.md tests/ %{nodejs_sitelib}/nodejs-propagate %changelog * Mon Mar 2 2015 Anish Patil - 0.3.0-3 - Incorporated package review comments * Fri Feb 27 2015 Anish Patil - 0.3.0-2 - Incorporated package review comments * Tue Feb 3 2015 Anish Patil - 0.3.0-1 - initial package