%{?nodejs_find_provides_and_requires} %global packagename d Name: nodejs-d Version: 1.0.0 Release: 1%{?dist} Summary: Property descriptor factory License: MIT URL: git://github.com/medikoo/d.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging Provides: npm(%{packagename}) AutoReq: 0 %description Property descriptor factory %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} %files %doc %license %{nodejs_sitelib}/%{packagename} %changelog