%{?scl:%scl_package nodejs-inflight} %{!?scl:%global pkg_name %{name}} %{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: %{?scl_prefix}nodejs-inflight Version: 1.0.4 Release: 5%{?dist} Summary: Node.js inflight License: ISC Url: https://github.com/isaacs/inflight Source: http://registry.npmjs.org/inflight/-/inflight-%{version}.tgz BuildRequires: nodejs-packaging BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: npm(wrappy) BuildRequires: npm(once) %if 0%{?enable_tests} BuildRequires: npm(tap) %endif %description Add callbacks to requests in flight to avoid async duplication %prep %setup -q -n package %{nodejs_fixdep} once %{nodejs_fixdep} wrappy %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/inflight cp -pr package.json inflight.js \ %{buildroot}%{nodejs_sitelib}/inflight/ %nodejs_symlink_deps %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check tap test.js %endif %files %doc README.md %license LICENSE %{nodejs_sitelib}/inflight %changelog * Wed May 22 2015 Zuzana Svetlikova - 1.0.4-5 - Removed redundant %%nodejs_fixdep macro * Wed Apr 15 2015 Zuzana Svetlikova - 1.0.4-4 - Added BuildRequires, macros, %%license and %%check sections * Tue Mar 03 2015 Zuzana Svetlikova - 1.0.4-3 - Fixed dependency - removed BuildRoot, Group, %%defattr - changed ExclusiveArch * Tue Jan 13 2015 Tomas Hrcka - 1.0.4-2 - Remove undefined macro * Mon Jan 12 2015 Tomas Hrcka - 1.0.4-1 - Initial build