diff --git a/.gitignore b/.gitignore index e69de29..a12ac7a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nodejs-array-differ-1.0.0.tar.gz diff --git a/nodejs-array-differ.spec b/nodejs-array-differ.spec new file mode 100644 index 0000000..606e112 --- /dev/null +++ b/nodejs-array-differ.spec @@ -0,0 +1,52 @@ +%{?nodejs_find_provides_and_requires} + +Name: nodejs-array-differ +Version: 1.0.0 +Release: 1%{?dist} +Summary: Find values that are only present in the first input array + +License: MIT +URL: https://www.npmjs.com/package/array-differ +Source0: https://github.com/sindresorhus/array-differ/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +BuildRequires: npm(mocha) + + +%description +Create an array with values that are present in the first input +array but not additional ones. + + +%prep +%autosetup -n array-differ-%{version} +rm -rf node_modules + + +%build + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/array-differ +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/array-differ +%nodejs_symlink_deps + + +%check +%nodejs_symlink_deps --check +%{nodejs_sitelib}/mocha/bin/mocha + + +%files +%{!?_licensedir:%global license %doc} +%doc readme.md +%license license +%{nodejs_sitelib}/array-differ + + +%changelog +* Sat Jan 2 2016 Tom Hughes - 1.0.0-1 +- Initial build of 1.0.0 diff --git a/sources b/sources index e69de29..9b3f490 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2d66f9c05e98337300e510417e0287d5 nodejs-array-differ-1.0.0.tar.gz