diff --git a/array-uniq-d5e311f.tar.gz b/array-uniq-d5e311f.tar.gz new file mode 100644 index 0000000..ef5478c Binary files /dev/null and b/array-uniq-d5e311f.tar.gz differ diff --git a/nodejs-array-uniq.spec b/nodejs-array-uniq.spec new file mode 100644 index 0000000..19aa8ef --- /dev/null +++ b/nodejs-array-uniq.spec @@ -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 - 1.0.2-1 +- Package init diff --git a/nodejs-array-uniq.yaml b/nodejs-array-uniq.yaml new file mode 100644 index 0000000..0dd4610 --- /dev/null +++ b/nodejs-array-uniq.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: sindresorhus/array-uniq +tag_prefix: "v" +seperator: "."