[nodejs-ejs] Initial import

Jamie Nguyen jamielinux at fedoraproject.org
Sun Jun 16 12:38:51 UTC 2013


commit 7970cc5975d5b8c20372d740e52c4b2d958cf804
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sun Jun 16 13:38:35 2013 +0100

    Initial import

 .gitignore      |    1 +
 nodejs-ejs.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9e70242 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ejs-0.8.4.tgz
diff --git a/nodejs-ejs.spec b/nodejs-ejs.spec
new file mode 100644
index 0000000..3de5256
--- /dev/null
+++ b/nodejs-ejs.spec
@@ -0,0 +1,60 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 1
+
+Name:       nodejs-ejs
+Version:    0.8.4
+Release:    1%{?dist}
+Summary:    Embedded JavaScript templates for Node.js
+# License text is included in Readme.md
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/visionmedia/ejs
+Source0:    http://registry.npmjs.org/ejs/-/ejs-%{version}.tgz
+BuildArch:  noarch
+
+BuildRequires:  nodejs-devel
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+BuildRequires:  npm(should)
+%endif
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/ejs
+cp -pr package.json ejs.js ejs.min.js index.js lib/ \
+    %{buildroot}%{nodejs_sitelib}/ejs
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+ln -sf %{nodejs_sitelib} .
+%{nodejs_sitelib}/mocha/bin/mocha --require should --reporter spec
+%endif
+
+
+%files
+%doc History.md Readme.md examples/
+%{nodejs_sitelib}/ejs
+
+
+%changelog
+* Wed May 29 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.8.4-1
+- update to upstream release 0.8.4
+
+* Sun Feb 17 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.8.3-1
+- initial package
diff --git a/sources b/sources
index e69de29..55c1dc1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+79aa40d59d46002bdd1b583e0a059b22  ejs-0.8.4.tgz


More information about the scm-commits mailing list