diff --git a/bluebird-2.9.12.tgz b/bluebird-2.9.12.tgz new file mode 100644 index 0000000..98491d5 Binary files /dev/null and b/bluebird-2.9.12.tgz differ diff --git a/nodejs-bluebird.spec b/nodejs-bluebird.spec new file mode 100644 index 0000000..623220d --- /dev/null +++ b/nodejs-bluebird.spec @@ -0,0 +1,52 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +%global barename bluebird +Name: nodejs-bluebird +Version: 2.9.12 +Release: 1 +Summary: Full featured Promises/A+ implementation +License: MIT +URL: https://www.npmjs.org/package/bluebird +Source0: http://registry.npmjs.org/bluebird/-/bluebird-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging >= 6 +%if 0%{?enable_tests} +BuildRequires: npm(jshint-stylish) npm(avow) npm(grunt) npm(jquery-browserify) npm(mocha) +BuildRequires: npm(concurrent) npm(sinon) npm(rimraf) npm(acorn) npm(semver-utils) +BuildRequires: npm(grunt-cli) npm(grunt-saucelabs) npm(browserify) npm(jsdom) npm(q) +BuildRequires: npm(grunt-contrib-concat) npm(grunt-contrib-connect) npm(grunt-contrib-jshint) +BuildRequires: npm(text-table) npm(when) npm(grunt-contrib-watch) npm(deferred) npm(mkdirp) +BuildRequires: npm(kew) npm(rsvp) +%endif +%description +Bluebird is a fully featured promise library with focus on innovative features +and performance + +%prep +%setup -q -n package +rm -rf node_modules/ +%nodejs_fixdep --caret + +%build +%nodejs_symlink_deps --build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/bluebird +cp -pr package.json 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 +* Thu Aug 20 2020 shaoqiang kang - 2.9.12-1 +- Package init diff --git a/nodejs-bluebird.yaml b/nodejs-bluebird.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/nodejs-bluebird.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA