package init
This commit is contained in:
parent
2d85a04d44
commit
6932d5fae1
45
nodejs-object-assign.spec
Normal file
45
nodejs-object-assign.spec
Normal 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
|
||||||
4
nodejs-object-assign.yaml
Normal file
4
nodejs-object-assign.yaml
Normal 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
BIN
v4.1.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user