# This macro is needed at the start for building on EL6 %{?nodejs_find_provides_and_requires} %global enable_tests 0 %global barename bluebird Name: nodejs-bluebird Version: 2.2.2 Release: 1%{?dist} Summary: Full featured Promises/A+ implementation Group: Development/Libraries License: MIT URL: https://www.npmjs.org/package/bluebird Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging >= 6 %if 0%{?enable_tests} BuildRequires: npm(jshint-stylish) BuildRequires: npm(avow) BuildRequires: npm(grunt) BuildRequires: npm(jquery-browserify) BuildRequires: npm(mocha) BuildRequires: npm(concurrent) BuildRequires: npm(sinon) BuildRequires: npm(rimraf) BuildRequires: npm(acorn) BuildRequires: npm(semver-utils) BuildRequires: npm(grunt-cli) BuildRequires: npm(grunt-saucelabs) BuildRequires: npm(browserify) BuildRequires: npm(jsdom) BuildRequires: npm(q) BuildRequires: npm(grunt-contrib-concat) BuildRequires: npm(grunt-contrib-connect) BuildRequires: npm(grunt-contrib-jshint) BuildRequires: npm(text-table) BuildRequires: npm(when) BuildRequires: npm(grunt-contrib-watch) BuildRequires: npm(deferred) BuildRequires: npm(mkdirp) BuildRequires: npm(kew) BuildRequires: npm(rsvp) %endif %description Bluebird is a fully featured promise library with focus on innovative features and performance %prep %setup -q -n package # Remove bundled node_modules if there are any.. rm -rf node_modules/ %nodejs_fixdep --caret %build %nodejs_symlink_deps --build %install mkdir -p %{buildroot}%{nodejs_sitelib}/bluebird cp -pr package.json zalgo.js \ %{buildroot}%{nodejs_sitelib}/bluebird %nodejs_symlink_deps %check %if 0%{?enable_tests} %nodejs_symlink_deps --check grunt test %endif %files %doc LICENSE README.md %{nodejs_sitelib}/bluebird/ %changelog * Tue Jul 22 2014 Ralph Bean - 2.2.2-1 - Initial packaging for Fedora.