%{?nodejs_find_provides_and_requires} %global packagename is-resolvable Name: nodejs-is-resolvable Version: 1.1.0 Release: 1%{?dist} Summary: Check if a module ID is resolvable with require() License: ISC URL: https://github.com/shinnn/is-resolvable.git Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging Provides: npm(%{packagename}) %description Check if a module ID is resolvable with require() %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