package init
This commit is contained in:
parent
f03a0cc997
commit
529294cdc7
BIN
bluebird-2.9.12.tgz
Normal file
BIN
bluebird-2.9.12.tgz
Normal file
Binary file not shown.
52
nodejs-bluebird.spec
Normal file
52
nodejs-bluebird.spec
Normal file
@ -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 <kangshaoqiang1@huawei.com> - 2.9.12-1
|
||||
- Package init
|
||||
4
nodejs-bluebird.yaml
Normal file
4
nodejs-bluebird.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
Loading…
x
Reference in New Issue
Block a user