[nodejs-private] Initial import (#1122230)

Ralph Bean ralph at fedoraproject.org
Wed Jul 23 17:59:08 UTC 2014


commit ac60c797951abc44d28c694c041e4f24a32067e3
Author: Ralph Bean <rbean at redhat.com>
Date:   Wed Jul 23 13:58:59 2014 -0400

    Initial import (#1122230)

 .gitignore          |    1 +
 nodejs-private.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ed95702 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/private-0.1.5.tgz
diff --git a/nodejs-private.spec b/nodejs-private.spec
new file mode 100644
index 0000000..cd8b0f2
--- /dev/null
+++ b/nodejs-private.spec
@@ -0,0 +1,60 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename private
+
+Name:               nodejs-private
+Version:            0.1.5
+Release:            1%{?dist}
+Summary:            Utility for associating truly private state with any JavaScript object
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/private
+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 general-purpose utility for associating truly private state with any
+JavaScript object.
+
+%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}/private
+cp -pr package.json private.js \
+    %{buildroot}%{nodejs_sitelib}/private
+
+%nodejs_symlink_deps
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+node test/run.js
+%endif
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/private/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 0.1.5-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..f6dca54 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9a55377dddda204685277eaa6935ff09  private-0.1.5.tgz


More information about the scm-commits mailing list