%{?nodejs_find_provides_and_requires} %global packagename shell-quote Name: nodejs-shell-quote Version: 1.6.1 Release: 1%{?dist} Summary: quote and parse shell commands License: MIT URL: http://github.com/substack/node-shell-quote.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(jsonify) BuildRequires: npm(array-filter) BuildRequires: npm(array-reduce) BuildRequires: npm(array-map) Provides: npm(%{packagename}) %description quote and parse shell commands %prep %setup -n "package" rm -Rf node_modules %nodejs_fixdep array-filter >= 1.0.0 %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr * %{buildroot}%{nodejs_sitelib}/%{packagename} %{nodejs_symlink_deps} %check %{nodejs_symlink_deps} --check %{__nodejs} -e 'require("./")' %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog