package init

This commit is contained in:
jackie_wu 2020-08-21 14:22:25 +08:00
parent 62f34c8df0
commit c2f7301856
3 changed files with 48 additions and 0 deletions

View 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

View 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

Binary file not shown.