%global shortname doctrine Name: nodejs-doctrine Version: 0.6.4 Release: 1%{?dist} Summary: A JSDoc parser # README.md states that some functions are 'derived' from esprima (BSD) and # some 'extensions' are 'derived' from closure-compiler (ASL 2.0) License: BSD and ASL 2.0 URL: https://github.com/Constellation/%{shortname} Source0: http://registry.npmjs.org/%{shortname}/-/%{shortname}-%{version}.tgz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(should) BuildRequires: npm(esutils) BuildRequires: npm(isarray) %description %{shortname} is %{summary}. %prep %setup -qn package %nodejs_fixdep esutils %build # Nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{shortname}/ cp -pr package.json lib/ %{buildroot}%{nodejs_sitelib}/%{shortname} %nodejs_symlink_deps %check %nodejs_symlink_deps --check # Test dep 'describe' is not packaged for Fedora yet for test in $(ls test/ | grep -v {midstream,parse}.js); do node test/${test} done %files %{nodejs_sitelib}/%{shortname} %doc README.md CONTRIBUTING.md # LICENSE.BSD and LICENSE.esprima are identical, so only one is included %license LICENSE.BSD LICENSE.closure-compiler %changelog * Sat Mar 07 2015 Gerard Ryan - 0.6.4-1 - Initial package