%define base_name lodash-node Name: nodejs-%{base_name} Version: 2.4.1 Release: 0 License: MIT Summary: A collection of Lo-Dash methods URL: http://lodash.com/custom-builds Group: Development/Languages/Other Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz BuildRequires: nodejs-packaging BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch ExclusiveArch: %{ix86} x86_64 %{arm} noarch %nodejs_find_provides_and_requires %description A collection of Lo-Dash methods as Node.js modules generated by lodash-cli. %prep %setup -q -n package %build %install mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name} cp -pr package.json modern compat underscore \ %{buildroot}%{nodejs_modulesdir}/%{base_name}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.md LICENSE.txt README.md %{nodejs_modulesdir}/%{base_name} %changelog