%global shortname tern Name: nodejs-%{shortname} Version: 0.7.0 Release: 1%{?dist} Summary: JavaScript code analyzer for deep, cross-editor language support License: MIT URL: http://ternjs.net/ Source0: http://registry.npmjs.org/%{shortname}/-/%{shortname}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %description Tern is a stand-alone, editor-independent JavaScript analyzer that can be used to improve the JavaScript integration of existing editors. %prep %setup -qn package %nodejs_fixdep glob %nodejs_fixdep minimatch %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{shortname}/ cp -pr package.json defs/ lib/ plugin/ \ %{buildroot}%{nodejs_sitelib}/%{shortname} %nodejs_symlink_deps %check %nodejs_symlink_deps --check sh -c './bin/test' %files %{nodejs_sitelib}/%{shortname} %doc LICENSE README.md doc/ index.html %changelog * Sat Nov 22 2014 G - 0.7.0-1 - Initial package