commit
86f4757137
39
nodejs-object-is.spec
Normal file
39
nodejs-object-is.spec
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
Name: nodejs-object-is
|
||||||
|
Version: 1.0.1
|
||||||
|
Release: 1
|
||||||
|
Summary: ES6-compliant shim for Object.is
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/ljharb/object-is
|
||||||
|
Source0: https://registry.npmjs.org/object-is/-/object-is-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
BuildRequires: npm(tape)
|
||||||
|
%description
|
||||||
|
ES6-compliant shim for Object.is - differentiates between -0 and +0.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
rm -rf node_modules
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/object-is
|
||||||
|
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/object-is
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%{__nodejs} test.js
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/object-is
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 wutao <wutao61@huawei.com> - 1.0.1-1
|
||||||
|
- Package init
|
||||||
4
nodejs-object-is.yaml
Normal file
4
nodejs-object-is.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: ljharb/object-is
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
object-is-1.0.1.tgz
Normal file
BIN
object-is-1.0.1.tgz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user