nodejs-es-to-primitive/nodejs-es-to-primitive.spec
cherry530 63dc1323c6 Upgrade version to 1.2.1
Signed-off-by: cherry530 <707078654@qq.com>
2023-11-13 15:18:41 +08:00

55 lines
1.8 KiB
RPMSpec

%{?nodejs_find_provides_and_requires}
Name: nodejs-es-to-primitive
Version: 1.2.1
Release: 1
Summary: ECMAScript “ToPrimitive” algorithm
License: MIT
URL: https://github.com/ljharb/es-to-primitive
Source0: https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-%{version}.tgz
Patch0: nodejs-es-to-primitive-fpn.patch
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(foreach) npm(is-callable) npm(is-date-object) npm(is-symbol) npm(object-is)
BuildRequires: npm(tape)
%description
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES6 versions. When
different versions of the spec conflict, the default export will be the
latest version of the abstract operation. Alternative versions will also
be available under an es5/es6/es7 exported property if you require a
specific version.
%prep
%autosetup -p 1 -n package
%nodejs_fixdep is-symbol "^1.0.1"
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/es-to-primitive
cp -pr package.json index.js es5.js es6.js es2015.js helpers %{buildroot}%{nodejs_sitelib}/es-to-primitive
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} --harmony test/index.js
%files
%doc README.md CHANGELOG.md
%license LICENSE
%{nodejs_sitelib}/es-to-primitive
%changelog
* Mon Nov 13 2023 xu_ping <707078654@qq.com> - 1.2.1-1
- Upgrade version to 1.2.1
* Fri Feb 10 2023 wangkai <wangkai385@h-partners.com> - 1.2.0-3
- remove unuse options
* Thu Nov 26 2020 leiju <leiju4@huawei.com> - 1.2.0-2
- delete nodejs-es-to-primitive.spec.old redundancy file
* Tue Aug 18 2020 Anan Fu <fuanan3@huawei.com> - 1.2.0-1
- package init