diff --git a/nodejs-object-dot-assign.spec b/nodejs-object-dot-assign.spec new file mode 100644 index 0000000..c600730 --- /dev/null +++ b/nodejs-object-dot-assign.spec @@ -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 - 4.1.0-1 +- Package init diff --git a/nodejs-object-dot-assign.yaml b/nodejs-object-dot-assign.yaml new file mode 100644 index 0000000..b8070d0 --- /dev/null +++ b/nodejs-object-dot-assign.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ljharb/object.assign +tag_prefix: "^v" +seperator: "." diff --git a/object.assign-4.1.0.tgz b/object.assign-4.1.0.tgz new file mode 100644 index 0000000..44901b9 Binary files /dev/null and b/object.assign-4.1.0.tgz differ