commit
4cc1a5953f
BIN
nodejs-safe-buffer-5.1.1.tar.gz
Normal file
BIN
nodejs-safe-buffer-5.1.1.tar.gz
Normal file
Binary file not shown.
38
nodejs-safe-buffer.spec
Normal file
38
nodejs-safe-buffer.spec
Normal 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
5
nodejs-safe-buffer.yaml
Normal 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: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user