45 lines
1.4 KiB
RPMSpec
45 lines
1.4 KiB
RPMSpec
%{?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
|