%global shortname tern-cordovajs Name: nodejs-tern-cordovajs Version: 0.1.0 Release: 2%{?dist} Summary: A Tern plugin adding support for CordovaJS License: MIT URL: https://github.com/vrubezhny/tern-cordovajs Source0: http://registry.npmjs.org/%{shortname}/-/%{shortname}-%{version}.tgz # Proposed license file upstream: # https://github.com/vrubezhny/tern-cordovajs/pull/2 Patch0: 0001-Add-MIT-License-file.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(tern) %description tern-cordovajs is a plugin which adds support for Apache Cordova(tm) JavaScript API to the JavaSript code intelligence system Tern. %prep %setup -qn package %nodejs_fixdep acorn %patch0 -p1 %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{shortname}/ cp -pr package.json cordovajs.js %{buildroot}%{nodejs_sitelib}/%{shortname} %nodejs_symlink_deps %files %{nodejs_sitelib}/%{shortname} %doc LICENSE README.md %changelog * Thu Feb 26 2015 Gerard Ryan - 0.1.0-2 - Review: Add fixdep for acorn * Sat Jan 31 2015 Gerard Ryan - 0.1.0-1 - Initial package