%{?nodejs_find_provides_and_requires} %global packagename form-data Name: nodejs-form-data Version: 2.3.2 Release: 1%{?dist} Summary: A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications. License: MIT URL: git://github.com/form-data/form-data.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(asynckit) BuildRequires: npm(combined-stream) BuildRequires: npm(mime-types) Provides: npm(%{packagename}) %description A library to create readable "multipart/form-data" streams. Can be used to submit forms and file uploads to other web applications. %prep %setup -n "package" rm -Rf node_modules %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