%{?nodejs_find_provides_and_requires} # test.js does not like being run in mock (ie, non-tty) %global enable_tests 0 Name: nodejs-keypress Version: 0.2.1 Release: %mkrel 1 Summary: Make any Node ReadableStream emit "keypress" events # License text is included in README.md License: MIT Group: System/Libraries URL: https://github.com/TooTallNate/keypress Source0: http://registry.npmjs.org/keypress/-/keypress-%{version}.tgz BuildArch: noarch BuildRequires: nodejs-packaging %description Previous to Node v0.8.x, there was an undocumented "keypress" event that process.stdin would emit when it was a TTY. Some people discovered this hidden gem, and started using it in their own code. In Node v0.8.x, this "keypress" event does not get emitted by default, but rather only when it is being used in conjunction with the readline (or by extension, the repl) module. This module is the exact logic from the node v0.8.x releases ripped out into its own module. %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/keypress cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/keypress %nodejs_symlink_deps %if 0%{?enable_tests} %check %__nodejs test.js %endif %files %doc README.md %{nodejs_sitelib}/keypress %changelog * Tue Oct 28 2014 tv <tv> 0.2.1-1.mga5 + Revision: 794162 - imported package nodejs-keypress