38 lines
932 B
RPMSpec
38 lines
932 B
RPMSpec
Name: nodejs-function-bind
|
|
Version: 1.1.1
|
|
Release: 1
|
|
Summary: Implementation of Function.prototype.bind
|
|
License: MIT
|
|
URL: https://github.com/Raynos/function-bind
|
|
Source0: https://registry.npmjs.org/function-bind/-/function-bind-%{version}.tgz
|
|
BuildArch: noarch
|
|
ExclusiveArch: noarch
|
|
BuildRequires: nodejs-packaging
|
|
BuildRequires: npm(tape)
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q -n package
|
|
rm -rf node_modules
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/function-bind
|
|
cp -pr package.json index.js implementation.js %{buildroot}%{nodejs_sitelib}/function-bind
|
|
%nodejs_symlink_deps
|
|
|
|
%check
|
|
%nodejs_symlink_deps --check
|
|
%__nodejs test/index.js
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{nodejs_sitelib}/function-bind
|
|
|
|
%changelog
|
|
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.1.1-1
|
|
- package init
|