%{?nodejs_find_provides_and_requires}
Name: nodejs-secure-random
Version: 1.1.1
Release: 1%{?dist}
Summary: Normalize the creation of cryptographically strong random values
License: MIT
URL: https://www.npmjs.com/package/secure-random
Source0: https://github.com/jprichardson/secure-random/archive/%{version}/secure-random-%{version}.tar.gz
# https://github.com/jprichardson/secure-random/issues/3
Source1: nodejs-secure-random-license.txt
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(mocha)
BuildRequires: npm(terst)
%description
%{summary}.
%prep
%autosetup -n secure-random-%{version}
cp %{SOURCE1} LICENSE
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/secure-random
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/secure-random
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha --ui bdd
%files
%doc README.md CHANGELOG.md
%license LICENSE
%{nodejs_sitelib}/secure-random
%changelog
* Wed Feb 24 2016 Tom Hughes <tom@compton.nu> - 1.1.1-1
- Initial build of 1.1.1