[nodejs-esprima-harmony-jscs] Initial import (#1169925)

Ralph Bean ralph at fedoraproject.org
Mon Feb 16 17:15:42 UTC 2015


commit ee966d2a13a81eed289b2a0b779015f485246f28
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Feb 16 12:15:31 2015 -0500

    Initial import (#1169925)

 .gitignore                       |    1 +
 nodejs-esprima-harmony-jscs.spec |   85 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 3 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..effb3f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/esprima-harmony-jscs-1.1.0-dev-harmony.tgz
diff --git a/nodejs-esprima-harmony-jscs.spec b/nodejs-esprima-harmony-jscs.spec
new file mode 100644
index 0000000..a7d77a1
--- /dev/null
+++ b/nodejs-esprima-harmony-jscs.spec
@@ -0,0 +1,85 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+%global prerelease dev
+%global dangler -harmony
+
+Name:               nodejs-esprima-harmony-jscs
+Version:            1.1.0
+Release:            0.2.%{prerelease}%{?dist}
+Summary:            ECMAScript parsing infrastructure for multipurpose analysis
+
+Group:              Development/Libraries
+License:            BSD
+URL:                https://www.npmjs.org/package/esprima-harmony-jscs
+Source0:            http://registry.npmjs.org/esprima-harmony-jscs/-/esprima-harmony-jscs-1.1.0-%{prerelease}%{dangler}.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(jslint)
+BuildRequires:      npm(unicode-6.3.0)
+BuildRequires:      npm(istanbul)
+BuildRequires:      npm(regenerate)
+BuildRequires:      npm(complexity-report)
+BuildRequires:      npm(json-diff)
+BuildRequires:      npm(eslint)
+%endif
+
+
+%description
+Esprima is a high performance, standard-compliant ECMAScript parser written in
+ECMAScript (also popularly known as JavaScript). Esprima is created and
+maintained by Ariya Hidayat with the help of many contributors.
+
+%prep
+%setup -q -n package
+
+# Remove bundled node_modules if there are any..
+rm -rf node_modules/
+
+%nodejs_fixdep --caret
+
+%build
+# This gives warnings when running the tests.
+#%nodejs_symlink_deps --build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/esprima-harmony-jscs/
+cp -pr package.json esprima.js bin/ \
+    %{buildroot}%{nodejs_sitelib}/esprima-harmony-jscs/
+
+mkdir -p %{buildroot}/%{_bindir}/
+ln -s %{nodejs_sitelib}/esprima-harmony-jscs/bin/esparse.js %{buildroot}/%{_bindir}/esparse
+ln -s %{nodejs_sitelib}/esprima-harmony-jscs/bin/esvalidate.js %{buildroot}/%{_bindir}/esvalidate
+
+%nodejs_symlink_deps
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+node test/run.js
+%endif
+
+
+%files
+%doc README.md
+%{nodejs_sitelib}/esprima-harmony-jscs/
+%{_bindir}/esparse
+%{_bindir}/esvalidate
+
+%changelog
+* Wed Feb 11 2015 Ralph Bean <rbean at redhat.com> - 1.1.0-0.2.dev
+- Symlink binaries in from nodejs_sitelib.
+- Commented out the --build statement as it gives warnings during the tests.
+- Removed unused barename global.
+
+* Tue Dec 02 2014 Ralph Bean <rbean at redhat.com> - 1.1.0-0.1.dev
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..c451235 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fdbda5765be10fe42c460e3ebcc7fd71  esprima-harmony-jscs-1.1.0-dev-harmony.tgz


More information about the scm-commits mailing list