%{?nodejs_find_provides_and_requires} %global packagename es-abstract %global enable_tests 1 Name: nodejs-es-abstract Version: 1.4.0 Release: 3%{?dist} Summary: ECMAScript spec abstract operations License: MIT URL: https://github.com/ljharb/es-abstract.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(es-to-primitive) BuildRequires: npm(foreach) BuildRequires: npm(is-callable) BuildRequires: npm(is-regex) BuildRequires: npm(object-is) BuildRequires: npm(tape) %endif Requires: nodejs %description ECMAScript spec abstract operations. %prep %setup -q -n package %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js helpers/ \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %__nodejs test/index.js %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Mon Oct 26 2015 Jared Smith - 1.4.0-3 - Add more missing BuildRequires * Mon Oct 26 2015 Jared Smith - 1.4.0-2 - Add missing BuildRequires * Mon Oct 26 2015 Jared Smith - 1.4.0-1 - Initial packaging