[nodejs-posix-get] Initial import (#1171239)
Parag Nemade
pnemade at fedoraproject.org
Mon Dec 8 16:45:16 UTC 2014
commit abfc68a416f38820146270e31d9817177c274f32
Author: Parag Nemade <pnemade at redhat.com>
Date: Mon Dec 8 22:15:22 2014 +0530
Initial import (#1171239)
.gitignore | 1 +
nodejs-posix-getopt.spec | 43 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..97f5b4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/posix-getopt-1.1.0.tgz
diff --git a/nodejs-posix-getopt.spec b/nodejs-posix-getopt.spec
new file mode 100644
index 0000000..efd7cd4
--- /dev/null
+++ b/nodejs-posix-getopt.spec
@@ -0,0 +1,43 @@
+%global module_name posix-getopt
+
+Name: nodejs-%{module_name}
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: POSIX-style getopt() for Node.js
+
+License: MIT
+URL: https://github.com/davepacheco/node-getopt
+Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%description
+node-getopt implements the POSIX getopt() function for Node.
+getopt() provides a functional interface for option parsing.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/%{module_name}
+%nodejs_symlink_deps
+
+%check
+%nodejs_symlink_deps --check
+node tests/test*.js
+
+%files
+%doc README.md LICENSE examples
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Wed Dec 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..5d77b00 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+775dde576f392ee6e3e7169b5e867c2a posix-getopt-1.1.0.tgz
More information about the scm-commits
mailing list