package init
This commit is contained in:
parent
3525dcad2c
commit
17a03731d2
BIN
array-uniq-d5e311f.tar.gz
Normal file
BIN
array-uniq-d5e311f.tar.gz
Normal file
Binary file not shown.
47
nodejs-array-uniq.spec
Normal file
47
nodejs-array-uniq.spec
Normal 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://www.npmjs.com/package/array-uniq
|
||||
Source0: https://github.com/sindresorhus/array-uniq/archive/d5e311f37692dfd25ec216490df10632ce5f69f3.tar.gz#/%{srcname}-%{shortcommit0}.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
|
||||
%setup -qn %{srcname}-%{commit0}
|
||||
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
4
nodejs-array-uniq.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: sindresorhus/array-uniq
|
||||
tag_prefix: "v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user