commit
2e644a98b9
47
nodejs-array-union.spec
Normal file
47
nodejs-array-union.spec
Normal file
@ -0,0 +1,47 @@
|
||||
%global enable_tests 1
|
||||
%global srcname array-union
|
||||
%global commit0 d0e72cc6fbff57273032e45050c51ff44c8e137c
|
||||
%global gittag0 v1.0.1
|
||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
||||
Name: nodejs-%{srcname}
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: Create an array of unique values, in order, from the input arrays
|
||||
License: MIT
|
||||
URL: https://github.com/sindresorhus/array-union
|
||||
Source0: https://github.com/sindresorhus/%{srcname}/archive/v%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(array-uniq) npm(mocha)
|
||||
%endif
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
rm -rf node_modules/
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
cp -pr index.js package.json \
|
||||
%{buildroot}%{nodejs_sitelib}/%{srcname}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
mocha
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc readme.md
|
||||
%license license
|
||||
%{nodejs_sitelib}/%{srcname}
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.0.1-1
|
||||
- Package init
|
||||
4
nodejs-array-union.yaml
Normal file
4
nodejs-array-union.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: sindresorhus/array-union
|
||||
tag_prefix: "v"
|
||||
seperator: "."
|
||||
BIN
v1.0.1.tar.gz
Normal file
BIN
v1.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user