[nodejs-typedarray] Initial import (#1176807)

Parag Nemade pnemade at fedoraproject.org
Tue Dec 30 13:29:31 UTC 2014


commit 6c7b40273093941904b83e25e7a7bbdaa3d4415c
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Dec 30 18:59:25 2014 +0530

    Initial import (#1176807)

 .gitignore             |    1 +
 nodejs-typedarray.spec |   49 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..26deaca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/typedarray-0.0.6.tgz
diff --git a/nodejs-typedarray.spec b/nodejs-typedarray.spec
new file mode 100644
index 0000000..b00ea67
--- /dev/null
+++ b/nodejs-typedarray.spec
@@ -0,0 +1,49 @@
+%global enable_tests 1
+%global module_name typedarray
+
+Name:           nodejs-%{module_name}
+Version:        0.0.6
+Release:        1%{?dist}
+Summary:        TypedArray polyfill for old browsers
+
+License:        MIT
+URL:            https://github.com/substack/typedarray
+Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(tape)
+%endif
+
+%description
+%{summary}.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
+%nodejs_symlink_deps
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+tape test/*.js test/server/*.js
+%endif
+
+%files
+%doc readme.markdown LICENSE example
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Mon Dec 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.0.6-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..75125ab 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+54a18bcd7fd55c812993e9ce90a0709d  typedarray-0.0.6.tgz


More information about the scm-commits mailing list