package init

This commit is contained in:
wangchong1995924 2020-08-20 17:33:49 +08:00
parent 2d85a04d44
commit 6932d5fae1
3 changed files with 49 additions and 0 deletions

45
nodejs-object-assign.spec Normal file
View File

@ -0,0 +1,45 @@
%global enable_tests 0
%global module_name object-assign
Name: nodejs-%{module_name}
Version: 4.1.1
Release: 1
Summary: ES6 Object.assign() ponyfill
License: MIT
URL: https://github.com/sindresorhus/object-assign
Source0: https://github.com/sindresorhus/object-assign/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(ava) npm(xo) npm(matcha) npm(lodash)
%endif
%description
%{summary}.
%prep
%setup -q -n %{module_name}-%{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
xo && ava
match bench.js
%endif
%files
%doc readme.md
%license license
%{nodejs_sitelib}/%{module_name}
%changelog
* Thu Aug 20 2020 wangchong <wangchong56@huawei.com> - 4.1.1-1
- package init

View File

@ -0,0 +1,4 @@
version-control: github
src_repo: sindresorhus/object-assign
tag_prefix: ^v
seperator: .

BIN
v4.1.1.tar.gz Normal file

Binary file not shown.