[nodejs-npm-stats] Initial import (#1173203)

Parag Nemade pnemade at fedoraproject.org
Tue Dec 30 08:45:31 UTC 2014


commit cbb7b6ce3f690fdac01915441e5defa00b1ecb74
Author: Parag Nemade <pnemade at redhat.com>
Date:   Tue Dec 30 14:15:20 2014 +0530

    Initial import (#1173203)

 .gitignore            |    1 +
 nodejs-npm-stats.spec |   57 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c043df0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/npm-stats-1.1.0.tgz
diff --git a/nodejs-npm-stats.spec b/nodejs-npm-stats.spec
new file mode 100644
index 0000000..7a704b4
--- /dev/null
+++ b/nodejs-npm-stats.spec
@@ -0,0 +1,57 @@
+%global module_name npm-stats
+
+Name:           nodejs-%{module_name}
+Version:        1.1.0
+Release:        1%{?dist}
+Summary:        Convenience module for getting back data from an NPM registry
+
+License:        MIT
+URL:            https://github.com/hughsk/npm-stats/
+Source0:        http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+Requires:       npm(event-stream)
+Requires:       npm(JSONStream)
+Requires:       npm(stream-reduce)
+Requires:       npm(through)
+Requires:       npm(nano)
+Requires:       npm(request)
+Requires:       npm(lodash.merge)
+
+
+%description
+Convenience module for getting back data from an NPM registry. All of the
+methods return a JSON stream, and/or take a callback. Where specified,
+some methods take an optional options object as well.
+
+%prep
+%setup -q -n package
+rm -rf node_modules
+
+%nodejs_fixdep JSONStream ~0.x
+%nodejs_fixdep event-stream ~3.x
+%nodejs_fixdep nano ~6.x
+%nodejs_fixdep request ~2.x
+%nodejs_fixdep through ~2.x
+
+
+%build
+# nothing to build
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
+cp -pr package.json index.js lib %{buildroot}%{nodejs_sitelib}/%{module_name}
+
+%nodejs_symlink_deps
+
+%files
+%doc README.md LICENSE.md
+%{nodejs_sitelib}/%{module_name}
+
+%changelog
+* Sun Dec 07 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..6925dbe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2890c1c536c4923e9c8315b6e387b2e0  npm-stats-1.1.0.tgz


More information about the scm-commits mailing list