[nodejs-window-size] Initial commit (#1194950)

Ralph Bean ralph at fedoraproject.org
Mon Mar 9 21:00:08 UTC 2015


commit 3595424debd5d5dae8b3839a0d5ef54ae86b3204
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Mar 9 16:59:19 2015 -0400

    Initial commit (#1194950)

 .gitignore              |  1 +
 nodejs-window-size.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |  1 +
 3 files changed, 54 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..002ecbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/window-size-0.1.0.tgz
diff --git a/nodejs-window-size.spec b/nodejs-window-size.spec
new file mode 100644
index 0000000..f105cef
--- /dev/null
+++ b/nodejs-window-size.spec
@@ -0,0 +1,52 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global barename window-size
+
+Name:               nodejs-window-size
+Version:            0.1.0
+Release:            1%{?dist}
+Summary:            Get the height and width of the terminal in a node.js environment
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/window-size
+Source0:            http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz
+BuildArch:          noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch:      %{nodejs_arches} noarch
+%else
+ExclusiveArch:      %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires:      nodejs-packaging >= 6
+
+%description
+Reliable way to to get the height and width of the terminal/console in a
+node.js environment.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+
+%build
+%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/window-size
+cp -pr package.json index.js \
+    %{buildroot}%{nodejs_sitelib}/window-size
+
+%nodejs_symlink_deps
+
+%files
+%doc LICENSE-MIT README.md
+%{nodejs_sitelib}/window-size/
+
+%changelog
+* Fri Feb 20 2015 Ralph Bean <rbean at redhat.com> - 0.1.0-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..ee9c9dd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4435de685ebf9f91d321707f869f7e7f  window-size-0.1.0.tgz


More information about the scm-commits mailing list