%{?nodejs_find_provides_and_requires} %global packagename handlebars Name: nodejs-handlebars Version: 4.0.12 Release: 1%{?dist} Summary: Handlebars provides the power necessary to let you build semantic templates effectively with no frustration License: MIT URL: http://www.handlebarsjs.com/ Source0: http://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging BuildRequires: npm(async) BuildRequires: npm(optimist) BuildRequires: npm(source-map) Provides: npm(%{packagename}) %description Handlebars provides the power necessary to let you build semantic templates effectively with no frustration %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