Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release-src > by-pkgid > 4539f59e11248e031a76e1b2212cde2d > files > 2

nodejs-keypress-0.2.1-3.mga7.src.rpm

%{?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 3
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
* Wed Sep 19 2018 umeabot <umeabot> 0.2.1-3.mga7
  (not released yet)
+ Revision: 1265014
- Mageia 7 Mass Rebuild

* Mon Feb 08 2016 umeabot <umeabot> 0.2.1-2.mga6
+ Revision: 950352
- Mageia 6 Mass Rebuild

* Tue Oct 28 2014 tv <tv> 0.2.1-1.mga5
+ Revision: 794162
- imported package nodejs-keypress


* Tue Oct 28 2014 Thierry Vignaud <tv@mageia.org> 0.2.1-1.mga5
- import from FC

* Wed Aug 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.2.1-1
- update to upstream release 0.2.1

* Sat Jul 27 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.0-4
- restrict to compatible arches

* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.0-3
- rebuild for missing npm(keypress) provides on EL6

* Thu Feb 14 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.0-2
- fix a typo in the description

* Tue Feb 12 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.0-1
- initial package