Blob Blame History Raw
%global module_name nsp-api

Name:           nodejs-%{module_name}
Version:        1.0.3
Release:        1%{?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 src %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps


%check
%nodejs_symlink_deps --check

%files
%doc LICENSE README.md
%{nodejs_sitelib}/%{module_name}


%changelog
* Sat Jan 24 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.3-1
- Update to 1.0.3 release

* Wed Nov 05 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.2-1
- Update to 1.0.2 release

* Fri Oct 24 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-2
- fix some minor changes as suggested in package review

* Fri Sep 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
- Initial packaging