nodejs-bluebird/nodejs-bluebird.spec

56 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-08-20 17:49:51 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
%global barename bluebird
Name: nodejs-bluebird
2022-07-02 18:01:14 +08:00
Version: 3.7.2
2020-08-20 17:49:51 +08:00
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
2022-07-02 18:01:14 +08:00
* Sat Jul 02 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.7.2-1
- Upgrade to version 3.7.2
2020-08-20 17:49:51 +08:00
* Thu Aug 20 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 2.9.12-1
- Package init