commit
fbd5021667
44
nodejs-object-dot-assign.spec
Normal file
44
nodejs-object-dot-assign.spec
Normal file
@ -0,0 +1,44 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
Name: nodejs-object-dot-assign
|
||||
Version: 4.1.0
|
||||
Release: 1
|
||||
Summary: An Object.assign shim
|
||||
License: MIT
|
||||
URL: https://www.npmjs.com/package/object.assign
|
||||
Source0: https://registry.npmjs.org/object.assign/-/object.assign-%{version}.tgz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildRequires: npm(tape) npm(define-properties) npm(function-bind) npm(has-symbols)
|
||||
BuildRequires: npm(object-keys)
|
||||
%description
|
||||
An Object.assign shim. Invoke its "shim" method to shim Object.assign
|
||||
if it is unavailable.
|
||||
This package implements the es-shim API interface. It works in an
|
||||
ES3-supported environment and complies with the spec. In an ES6
|
||||
environment, it will also work properly with Symbols.
|
||||
|
||||
%prep
|
||||
%autosetup -n package
|
||||
rm -rf node_modules
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/object.assign
|
||||
cp -pr package.json index.js implementation.js polyfill.js shim.js %{buildroot}%{nodejs_sitelib}/object.assign
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%__nodejs test/index.js
|
||||
%__nodejs test/shimmed.js
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md CHANGELOG.md
|
||||
%{nodejs_sitelib}/object.assign
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 4.1.0-1
|
||||
- Package init
|
||||
4
nodejs-object-dot-assign.yaml
Normal file
4
nodejs-object-dot-assign.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: ljharb/object.assign
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
object.assign-4.1.0.tgz
Normal file
BIN
object.assign-4.1.0.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user