%{?nodejs_find_provides_and_requires} %global packagename is-promise %global enable_tests 0 # disable tests temporarily to bootstrap new jade and readdirp Name: nodejs-is-promise Version: 2.1.0 Release: 3%{?dist} Summary: Test whether an object looks like a promises-a+ promise License: MIT URL: https://github.com/then/is-promise.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz # The test files are not included in the npm tarball. Source1: https://raw.githubusercontent.com/then/is-promise/056f8ac12eed91886ac4f0f7d872a176f6ed698f/test.js ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: mocha BuildRequires: npm(better-assert) %endif Requires: nodejs %description Test whether an object looks like a promises-a+ promise %prep %setup -q -n package # setup the tests cp -p %{SOURCE1} . %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/mocha -R spec %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Fri Oct 23 2015 Jared Smith - 2.1.0-3 - rebuilt * Fri Oct 23 2015 Jared Smith - 2.1.0-2 - Add missing BuildRequires * Fri Oct 23 2015 Jared Smith - 2.1.0-1 - Initial packaging