!1 add package

Merge pull request !1 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-08-24 14:44:06 +08:00 committed by Gitee
commit 23d8f367a5
3 changed files with 41 additions and 0 deletions

BIN
function-bind-1.1.1.tgz Normal file

Binary file not shown.

37
nodejs-function-bind.spec Normal file
View File

@ -0,0 +1,37 @@
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: %{nodejs_arches} 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

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: Raynos/function-bind
tag_prefix: "^v"
seperator: "."