diff --git a/array-index-1.0.0.tgz b/array-index-1.0.0.tgz new file mode 100644 index 0000000..a6ab815 Binary files /dev/null and b/array-index-1.0.0.tgz differ diff --git a/nodejs-array-index.spec b/nodejs-array-index.spec new file mode 100644 index 0000000..0d0e8bc --- /dev/null +++ b/nodejs-array-index.spec @@ -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 - 1.0.0-1 +- Package init diff --git a/nodejs-array-index.yaml b/nodejs-array-index.yaml new file mode 100644 index 0000000..b2b40b3 --- /dev/null +++ b/nodejs-array-index.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: TooTallNate/array-index +tag_prefix: "^" +seperator: "."