[nodejs-stringset] Initial import (#1122243)
Ralph Bean
ralph at fedoraproject.org
Wed Jul 23 17:49:49 UTC 2014
commit 2b0f69a51012c7938ca87a521ee46e2fef384cf7
Author: Ralph Bean <rbean at redhat.com>
Date: Wed Jul 23 13:49:41 2014 -0400
Initial import (#1122243)
.gitignore | 1 +
nodejs-stringset.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d78946d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/stringset-0.2.1.tgz
diff --git a/nodejs-stringset.spec b/nodejs-stringset.spec
new file mode 100644
index 0000000..1a5bd32
--- /dev/null
+++ b/nodejs-stringset.spec
@@ -0,0 +1,59 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global barename stringset
+
+Name: nodejs-stringset
+Version: 0.2.1
+Release: 1%{?dist}
+Summary: Fast and robust stringset
+
+Group: Development/Libraries
+License: MIT
+URL: https://www.npmjs.org/package/stringset
+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
+A fast and robust stringset implementation that can hold any string items,
+including __proto__, with minimal overhead compared to a plain object. Works in
+node and browsers.
+
+The API is created to be as close to the ES6 Set API as possible. Prefer
+ss.remove("key") for deleting a key. ES6 Set uses set.delete("key") instead and
+for that reason ss['delete']("key") is available as a stringset alias as well.
+Never do ss.delete("key") unless you're certain to be in the land of ES5 or
+later.
+
+%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}/stringset
+cp -pr package.json examples.js stringset.js \
+ %{buildroot}%{nodejs_sitelib}/stringset
+
+%nodejs_symlink_deps
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/stringset/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 0.2.1-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..573ec18 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+99f6e2cd63f07bb2c7cf13a85494bde2 stringset-0.2.1.tgz
More information about the scm-commits
mailing list