commit
77f6c037d0
BIN
es6-weak-map-2.0.1.tgz
Normal file
BIN
es6-weak-map-2.0.1.tgz
Normal file
Binary file not shown.
48
nodejs-es6-weak-map.spec
Normal file
48
nodejs-es6-weak-map.spec
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global packagename es6-weak-map
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-es6-weak-map
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 1
|
||||||
|
Summary: ECMAScript6 WeakMap polyfill
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/medikoo/es6-weak-map.git
|
||||||
|
Source0: https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tad)
|
||||||
|
%endif
|
||||||
|
Requires: nodejs
|
||||||
|
|
||||||
|
%description
|
||||||
|
ECMAScript6 WeakMap polyfill
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
%nodejs_fixdep d "<=2.0.0"
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
cp -pr package.json *.js \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%__nodejs %{nodejs_sitelib}/tad/bin/tad
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{!?_licensedir:%global license %doc}
|
||||||
|
%doc *.md
|
||||||
|
%license LICENSE
|
||||||
|
%{nodejs_sitelib}/%{packagename}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 2.0.1-1
|
||||||
|
- Package init
|
||||||
4
nodejs-es6-weak-map.yaml
Normal file
4
nodejs-es6-weak-map.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: medikoo/es6-weak-map
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user