53 lines
1.6 KiB
RPMSpec
53 lines
1.6 KiB
RPMSpec
|
|
%{?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 <kangshaoqiang1@huawei.com> - 2.9.12-1
|
||
|
|
- Package init
|