package init

This commit is contained in:
root 2020-08-20 17:10:07 +08:00
parent 4d26ff7da3
commit c50ff75a28
3 changed files with 43 additions and 0 deletions

Binary file not shown.

39
nodejs-array-differ.spec Normal file
View File

@ -0,0 +1,39 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-array-differ
Version: 1.0.0
Release: 1
Summary: Find values that are only present in the first input array
License: MIT
URL: https://www.npmjs.com/package/array-differ
Source0: https://github.com/sindresorhus/array-differ/archive/v%{version}/nodejs-array-differ-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging npm(mocha)
%description
Create an array with values that are present in the first input
array but not additional ones.
%prep
%autosetup -n array-differ-%{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/array-differ
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/array-differ
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{nodejs_sitelib}/mocha/bin/mocha
%files
%{!?_licensedir:%global license %doc}
%doc readme.md
%license license
%{nodejs_sitelib}/array-differ
%changelog
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.0.0-1
- Package init

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

@ -0,0 +1,4 @@
version_control: github
src_repo: sindresorhus/array-differ
tag_prefix: "v"
seperator: "."