%define base_name vargs Name: nodejs-%{base_name} Version: 0.1.0 Release: 0 License: MIT Summary: practical variable argument handling URL: https://github.com/isaacs/vargs Group: Development/Languages/Other Source0: http://registry.npmjs.org/%{base_name}/-/%{base_name}-%{version}.tgz Requires: nodejs BuildRequires: nodejs BuildRequires: nodejs-packaging BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch ExclusiveArch: %{ix86} x86_64 %{arm} noarch %description Node.js vargs module. practical variable argument handling. %prep %setup -q -n 1289345827297-0.9301352843176574 %build %install mkdir -p %{buildroot}%{nodejs_modulesdir}/%{base_name} cp -pr package.json lib \ %{buildroot}%{nodejs_modulesdir}/%{base_name}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README.md %{nodejs_modulesdir}/%{base_name} %changelog