[nodejs-mustache] Initial commit

anish anishpatil at fedoraproject.org
Mon Nov 24 06:53:37 UTC 2014


commit 0c54a6c90944aa250239f148941b777d4fe56d2b
Author: anish <apatil at redhat.com>
Date:   Mon Nov 24 12:22:56 2014 +0530

    Initial commit

 .gitignore           |    1 +
 nodejs-mustache.spec |   53 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7b98b6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mustache-0.8.2.tgz
diff --git a/nodejs-mustache.spec b/nodejs-mustache.spec
new file mode 100644
index 0000000..df98da0
--- /dev/null
+++ b/nodejs-mustache.spec
@@ -0,0 +1,53 @@
+%{?nodejs_find_provides_and_requires}
+%global enable_tests 0
+
+Name:       nodejs-mustache
+Version:    0.8.2
+Release:    1%{?dist}
+Summary:    mustache.js is an implementation of the mustache template system in JavaScript
+License:    MIT
+URL:        https://github.com/janl/mustache.js
+Source:     http://registry.npmjs.org/mustache/-/mustache-%{version}.tgz
+
+
+BuildArch:  noarch
+
+BuildRequires:  nodejs-packaging
+ExclusiveArch: %{nodejs_arches} noarch
+
+%if 0%{?enable_tests}
+BuildRequires:  npm(mocha)
+%endif
+
+%description
+An implementation of the mustache template system in JavaScript.Mustache is a logic-less template syntax. It can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object.
+We call it "logic-less" because there are no if statements, else clauses, or for loops. Instead there are only tags. Some tags are replaced with a value, some nothing, and others a series of values.
+
+%prep
+%setup -q -n package
+
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/mustache
+cp -pr mustache.js mustache.js.nuspec Rakefile package.json wrappers/ \
+    %{buildroot}%{nodejs_sitelib}/mustache
+%nodejs_symlink_deps 
+
+%if 0%{?enable_tests}
+%check
+mocha test
+%endif
+
+%files
+%doc LICENSE CHANGES README.md 
+%{nodejs_sitelib}/mustache
+
+
+%changelog
+* Thu Sep 04 2014 Anish Patil <apatil at redhat.com> - 0.8.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..81a1f1c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c5acd48858f5f8a8a38df6af83efa803  mustache-0.8.2.tgz


More information about the scm-commits mailing list