[nodejs-open] Initial import (#1115700)

Ralph Bean ralph at fedoraproject.org
Tue Jul 22 16:52:03 UTC 2014


commit a88dfe21d140467c8abf8d9cc520e74dcd56a60a
Author: Ralph Bean <rbean at redhat.com>
Date:   Tue Jul 22 12:51:51 2014 -0400

    Initial import (#1115700)

 .gitignore       |    1 +
 nodejs-open.spec |   68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c7c191c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/open-0.0.5.tgz
diff --git a/nodejs-open.spec b/nodejs-open.spec
new file mode 100644
index 0000000..ecc0075
--- /dev/null
+++ b/nodejs-open.spec
@@ -0,0 +1,68 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global barename open
+
+Name:               nodejs-open
+Version:            0.0.5
+Release:            2%{?dist}
+Summary:            Open a file or url in the user's preferred application
+
+Group:              Development/Libraries
+License:            MIT
+URL:                https://www.npmjs.org/package/open
+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
+
+%if 0%{?enable_tests}
+BuildRequires:      npm(mocha)
+%endif
+
+
+%description
+Open a file or url in the user's preferred application.
+
+%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}/open
+cp -pr package.json lib \
+    %{buildroot}%{nodejs_sitelib}/open
+
+%nodejs_symlink_deps
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+node_modules/mocha/bin/mocha
+%endif
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/open/
+
+%changelog
+* Mon Jul 21 2014 Ralph Bean <rbean at redhat.com> - 0.0.5-2
+- Specify noarch.
+
+* Tue Jul 08 2014 Ralph Bean <rbean at redhat.com> - 0.0.5-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..8e8df83 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4d2216c0d00902db7578cf0586aa33de  open-0.0.5.tgz


More information about the scm-commits mailing list