[nodejs-keypress] Initial commit

Jamie Nguyen jamielinux at fedoraproject.org
Thu Feb 14 15:24:06 UTC 2013


commit dbf60554c8198f5ff8a5b733b0ab5709320315b1
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Thu Feb 14 15:23:58 2013 +0000

    Initial commit

 .gitignore           |    1 +
 nodejs-keypress.spec |   62 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0e3107c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/keypress-0.1.0.tgz
diff --git a/nodejs-keypress.spec b/nodejs-keypress.spec
new file mode 100644
index 0000000..dd1f4dd
--- /dev/null
+++ b/nodejs-keypress.spec
@@ -0,0 +1,62 @@
+# test.js does not like being run in mock (ie, non-tty)
+%global enable_tests 0
+
+Name:       nodejs-keypress
+Version:    0.1.0
+Release:    2%{?dist}
+Summary:    Make any Node ReadableStream emit "keypress" events
+# License text is included in README.md
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/TooTallNate/keypress
+Source0:    http://registry.npmjs.org/keypress/-/keypress-%{version}.tgz
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%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
+* Thu Feb 14 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.0-2
+- fix a typo in the description
+
+* Tue Feb 12 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.1.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..49b84bd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bd0354f61a11712a91866243c480a248  keypress-0.1.0.tgz


More information about the scm-commits mailing list