[nodejs-constantinople] Initial import
Jamie Nguyen
jamielinux at fedoraproject.org
Mon Mar 3 21:19:03 UTC 2014
commit 3d5151ee41590b2b04b767a086de04f5010c48d4
Author: Jamie Nguyen <j at jamielinux.com>
Date: Mon Mar 3 21:19:54 2014 +0000
Initial import
.gitignore | 1 +
nodejs-constantinople.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..82f7b73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/constantinople-2.0.0.tgz
diff --git a/nodejs-constantinople.spec b/nodejs-constantinople.spec
new file mode 100644
index 0000000..d42ce7d
--- /dev/null
+++ b/nodejs-constantinople.spec
@@ -0,0 +1,67 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name: nodejs-constantinople
+Version: 2.0.0
+Release: 1%{?dist}
+Summary: Determine whether a JavaScript expression evaluates to a constant
+License: MIT
+Group: System Environment/Libraries
+URL: https://github.com/ForbesLindesay/constantinople
+Source0: http://registry.npmjs.org/constantinople/-/constantinople-%{version}.tgz
+
+BuildArch: noarch
+%if 0%{?fedora} >= 19
+ExclusiveArch: %{nodejs_arches} noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm} noarch
+%endif
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: uglify-js
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+find . -type f -exec chmod -x '{}' \;
+for i in LICENSE README.md; do
+ sed -i -e 's/\r$//' "${i}"
+done
+
+%nodejs_fixdep uglify-js '~2.2'
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/constantinople
+cp -pr package.json index.js \
+ %{buildroot}%{nodejs_sitelib}/constantinople
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+/usr/bin/mocha -R spec
+%endif
+
+
+%files
+%doc LICENSE README.md
+%{nodejs_sitelib}/constantinople
+
+
+%changelog
+* Sun Mar 02 2014 Jamie Nguyen <jamielinux at fedoraproject.org> - 2.0.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..8fe4853 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3aa38e21897a34bfea7036f66795398e constantinople-2.0.0.tgz
More information about the scm-commits
mailing list