!1 Package init

Merge pull request !1 from 雷炬/master
This commit is contained in:
openeuler-ci-bot 2020-08-22 12:37:21 +08:00 committed by Gitee
commit a2462677e5
3 changed files with 44 additions and 0 deletions

Binary file not shown.

40
nodejs-fill-keys.spec Normal file
View File

@ -0,0 +1,40 @@
Name: nodejs-fill-keys
Version: 1.0.2
Release: 1
Summary: Fill keys in a destination that are defined on the source
License: MIT
URL: https://github.com/bendrucker/fill-keys
Source0: https://github.com/bendrucker/fill-keys/archive/v%{version}.tar.gz#/nodejs-fill-keys-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(is-object) npm(merge-descriptors) >= 1.0.0
BuildRequires: npm npm(tape)
%description
Fill keys in a destination that are defined on the source. Copies
descriptors so properties like enumerable will persist.
%prep
%setup -q -n fill-keys-%{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/fill-keys
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/fill-keys
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} --harmony %{nodejs_sitelib}/tape/bin/tape test.js
%files
%doc readme.md
%license license
%{nodejs_sitelib}/fill-keys
%changelog
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 1.0.2-1
- Package init

4
nodejs-fill-keys.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: bendrucker/fill-keys
tag_prefix: "^v"
seperator: "."