[nodejs-tryor] Initial import (#1122246)

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


commit 950e4bfc4540e95e3a74dd1c90a032ba93fd392c
Author: Ralph Bean <rbean at redhat.com>
Date:   Wed Jul 23 13:37:11 2014 -0400

    Initial import (#1122246)

 .gitignore        |    1 +
 nodejs-tryor.spec |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4c47f31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tryor-0.1.2.tgz
diff --git a/nodejs-tryor.spec b/nodejs-tryor.spec
new file mode 100644
index 0000000..8340d7b
--- /dev/null
+++ b/nodejs-tryor.spec
@@ -0,0 +1,53 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global barename tryor
+
+Name:               nodejs-tryor
+Version:            0.1.2
+Release:            1%{?dist}
+Summary:            Return fn() or default value (in case of exception)
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/tryor
+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
+Evalulate a function and return the value, or, in the case of an exception,
+return a default value.
+
+%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}/tryor
+cp -pr package.json tryor.js \
+    %{buildroot}%{nodejs_sitelib}/tryor
+
+%nodejs_symlink_deps
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/tryor/
+
+%changelog
+* Tue Jul 22 2014 Ralph Bean <rbean at redhat.com> - 0.1.2-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..65d0e2a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+26f8d04620772d2443435d57c9ef1649  tryor-0.1.2.tgz


More information about the scm-commits mailing list