[nodejs-handlebars] Initial import (#1123537).

Eduardo Mayorga Téllez mayorga at fedoraproject.org
Wed Nov 26 19:14:00 UTC 2014


commit 0b54f2e676972d4f7995e0257cafbaa9d52fa3c8
Author: Eduardo Mayorga <mayorga at fedoraproject.org>
Date:   Wed Nov 26 13:13:48 2014 -0600

    Initial import (#1123537).

 .gitignore             |    1 +
 nodejs-handlebars.spec |   81 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4d1fc4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/handlebars-2.0.0.tgz
diff --git a/nodejs-handlebars.spec b/nodejs-handlebars.spec
new file mode 100644
index 0000000..b9f23b7
--- /dev/null
+++ b/nodejs-handlebars.spec
@@ -0,0 +1,81 @@
+# This macro is needed at the start for building on EL6
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+%global npm_name handlebars
+
+Name:		nodejs-%{npm_name}
+Version:	2.0.0
+Release:	2%{dist}
+Summary:	Mustache extension for Node.js
+Group:		Development/Libraries
+
+License:	MIT
+URL:		http://handlebarsjs.com/
+Source0:	http://registry.npmjs.org/handlebars/-/%{npm_name}-%{version}.tgz
+
+BuildRequires:	npm(uglify-js)
+BuildRequires:	npm(optimist)
+
+Requires:	npm(uglify-js)
+Requires:	npm(optimist)
+
+BuildRequires:	nodejs-devel
+BuildRequires:	nodejs-packaging
+
+BuildArch:	noarch
+ExclusiveArch:	%{nodejs_arches} noarch
+
+%description
+Handlebars.js is an extension to the Mustache templating language created by
+Chris Wanstrath. Handlebars.js and Mustache are both logicless templating
+languages that keep the view and the code separated like we all know they should
+be.
+
+%prep
+%setup -q -n package
+
+# Remove bundled optimist
+rm -rf node_modules
+
+%build
+%nodejs_symlink_deps --build
+
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{nodejs_sitelib}/handlebars
+chmod a+x bin/handlebars
+cp -rp bin package.json lib/* runtime.js %{buildroot}/%{nodejs_sitelib}/handlebars
+
+# Install /usr/bin/handlebars
+ln -s %{nodejs_sitelib}/handlebars/bin/handlebars \
+      %{buildroot}%{_bindir}
+
+%nodejs_symlink_deps
+
+%check
+%if 0%{?enable_tests}
+%nodejs_symlink_deps --check
+%endif
+
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%doc README.markdown release-notes.md
+%{nodejs_sitelib}/handlebars/
+%{_bindir}/handlebars
+
+
+%changelog
+* Tue Nov 25 2014 Eduardo Mayorga Téllez <mayorga at fedoraproject.org> - 2.0.0-2
+- Fixing symlink to CLI
+
+* Thu Nov 20 2014 Eduardo Mayorga Téllez <mayorga at fedoraproject.org> - 2.0.0-1
+- Update to final release 2.0.0
+- Adding missing Requires
+
+* Fri Jul 25 2014 Eduardo Mayorga Téllez <mayorga at fedoraproject.org> - 2.0.0-0.1.alpha.4
+- Initial packaging
diff --git a/sources b/sources
index e69de29..01c1036 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fabd0fbc7eeb346676d2afeaf5e68521  handlebars-2.0.0.tgz


More information about the scm-commits mailing list