!1 package init

From: @kang_xiao_qiang
Reviewed-by: @solarhu
Signed-off-by: @solarhu
This commit is contained in:
openeuler-ci-bot 2020-09-11 21:26:32 +08:00 committed by Gitee
commit 93c6b2fbc0
3 changed files with 51 additions and 0 deletions

47
nodejs-array-uniq.spec Normal file
View File

@ -0,0 +1,47 @@
%global enable_tests 0
%global srcname array-uniq
%global commit0 d5e311f37692dfd25ec216490df10632ce5f69f3
%global gittag0 v1.0.2
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: nodejs-%{srcname}
Version: 1.0.2
Release: 1
Summary: Create an array without duplicates
License: MIT
URL: https://github.com/sindresorhus/array-uniq
Source0: https://github.com/sindresorhus/array-uniq/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(require-uncached) npm(es6-set) 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.2-1
- Package init

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

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

BIN
v1.0.2.tar.gz Normal file

Binary file not shown.