From b8cc7c06d847ec1a4da642ba242137c3c1b14e4e Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Oct 24 2014 15:44:21 +0000 Subject: Initial import(#1144662) --- diff --git a/.gitignore b/.gitignore index e69de29..4189b76 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nsp-api-1.0.0.tgz diff --git a/nodejs-nsp-api.spec b/nodejs-nsp-api.spec new file mode 100644 index 0000000..b9e327b --- /dev/null +++ b/nodejs-nsp-api.spec @@ -0,0 +1,48 @@ +%global module_name nsp-api + +Name: nodejs-%{module_name} +Version: 1.0.0 +Release: 2%{?dist} +Summary: Node.js module for NSP API + +License: MIT +URL: https://github.com/nodesecurity/%{module_name} +Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging +BuildRequires: npm(request) + +%description +Node.js module wrapper for the Node Security Project API + +%prep +%setup -q -n package +rm -rf node_modules +%nodejs_fixdep request ~2.x + +%build +#nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + + +%check +%nodejs_symlink_deps --check + +%files +%doc LICENSE README.md +%{nodejs_sitelib}/%{module_name} + + +%changelog +* Fri Oct 24 2014 Parag Nemade - 1.0.0-2 +- fix some minor changes as suggested in package review + +* Fri Sep 19 2014 Parag Nemade - 1.0.0-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..7caaf3f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6329ee5b20d71e751e1dd81aaf55b21d nsp-api-1.0.0.tgz