package init

This commit is contained in:
wang_yue111 2020-08-21 10:04:18 +08:00
parent b2b07fb5c3
commit 5ba728ae6f
3 changed files with 43 additions and 0 deletions

Binary file not shown.

38
nodejs-safe-buffer.spec Normal file
View File

@ -0,0 +1,38 @@
%global srcname safe-buffer
Name: nodejs-%{srcname}
Version: 5.1.1
Release: 1
Summary: Node.js module for a safer buffer API
License: MIT
URL: https://github.com/feross/safe-buffer
Source0: https://github.com/feross/safe-buffer/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging npm(tape)
%description
%{summary}.
%prep
%autosetup -n %{srcname}-%{version}
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json index.js \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%{__nodejs} -e 'require("./")'
tape test.js
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/%{srcname}
%changelog
* Fri Aug 21 2020 wangyue <wangyue92@huawei.com> - 5.1.1-1
- package init

5
nodejs-safe-buffer.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/feross/safe-buffer
version_control: github
src_repo: feross/safe-buffer
tag_prefix: "^v"
seperator: "."