package init
This commit is contained in:
parent
592510bc11
commit
56a9c148da
BIN
array-index-1.0.0.tgz
Normal file
BIN
array-index-1.0.0.tgz
Normal file
Binary file not shown.
46
nodejs-array-index.spec
Normal file
46
nodejs-array-index.spec
Normal 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
4
nodejs-array-index.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: TooTallNate/array-index
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user