[nodejs-nomnom/epel7] initial version

Dan Callaghan dcallagh at fedoraproject.org
Wed Nov 12 11:30:15 UTC 2014


commit 705eb37327a53544b0bd32a0f8de43d05b1a3b63
Author: Dan Callaghan <dcallagh at redhat.com>
Date:   Sun Oct 12 13:48:13 2014 +1000

    initial version

 .gitignore         |    1 +
 nodejs-nomnom.spec |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2780fde 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nomnom-1.8.0.tgz
diff --git a/nodejs-nomnom.spec b/nodejs-nomnom.spec
new file mode 100644
index 0000000..98dc97f
--- /dev/null
+++ b/nodejs-nomnom.spec
@@ -0,0 +1,52 @@
+%global modname nomnom
+
+%if ! ( 0%{?fedora} || 0%{?rhel} >= 7 )
+%{?nodejs_find_provides_and_requires}
+%global nodejs_arches %{ix86} x86_64 %{arm}
+%endif
+
+# tests are disabled until nodeunit is packaged
+%bcond_with tests
+
+Name:           nodejs-%{modname}
+Version:        1.8.0
+Release:        1%{?dist}
+Summary:        Nodejs option parser with generated usage and commands
+License:        MIT
+URL:            https://github.com/harthur/nomnom
+Source0:        http://registry.npmjs.org/%{modname}/-/%{modname}-%{version}.tgz
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+BuildRequires:  nodejs-packaging
+%if %{with tests}
+BuildRequires:  npm(nodeunit)
+%endif
+
+%description
+Nomnom is an option parser for Node. It noms your args and gives them back to 
+you in a hash.
+
+%prep
+%setup -q -n package
+
+%build
+# nothing to do
+
+%if %{with tests}
+%check
+%nodejs_symlink_deps --check
+./node_modules/.bin/nodeunit test/*.js
+%endif
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname}
+cp -p package.json nomnom.js %{buildroot}%{nodejs_sitelib}/%{modname}/
+%nodejs_symlink_deps
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/%{modname}
+
+%changelog
+* Sun Oct 12 2014 Dan Callaghan <dcallagh at redhat.com> - 1.8.0-1
+- initial version
diff --git a/sources b/sources
index e69de29..d40e82c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5796e6f3467e73ad5810dea0ee465b14  nomnom-1.8.0.tgz


More information about the scm-commits mailing list