!1 package init

Merge pull request !1 from 康少强/master
This commit is contained in:
openeuler-ci-bot 2020-08-22 13:02:36 +08:00 committed by Gitee
commit 1b05971b9d
3 changed files with 50 additions and 0 deletions

BIN
array-index-1.0.0.tgz Normal file

Binary file not shown.

46
nodejs-array-index.spec Normal file
View File

@ -0,0 +1,46 @@
%{?nodejs_find_provides_and_requires}
%global packagename array-index
%global enable_tests 1
Name: nodejs-array-index
Version: 1.0.0
Release: 1
Summary: Invoke getter/setter functions on array-like objects
License: MIT
URL: https://github.com/TooTallNate/array-index.git
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: grep npm(debug) npm(es6-symbol)
%endif
%description
Invoke getter/setter functions on array-like objects
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
cp -pr *.json index.js \
%{buildroot}%{nodejs_sitelib}/%{packagename}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
%if 0%{?enable_tests}
%{__nodejs} test.js
%endif
%files
%{!?_licensedir:%global license %doc}
%doc README.md History.md
%license LICENSE
%{nodejs_sitelib}/%{packagename}
%changelog
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.0.0-1
- Package init

4
nodejs-array-index.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: TooTallNate/array-index
tag_prefix: "^"
seperator: "."