package init

This commit is contained in:
wang_yue111 2020-08-20 13:49:23 +08:00
parent 64ab5a2655
commit 01a4e19f7f
3 changed files with 42 additions and 0 deletions

37
nodejs-stringstream.spec Normal file
View File

@ -0,0 +1,37 @@
%global srcname stringstream
Name: nodejs-%{srcname}
Version: 0.0.5
Release: 1
Summary: Encode and decode streams into string streams
License: MIT
URL: https://github.com/mhart/StringStream
Source0: https://github.com/mhart/stringstream/archive/v%{version}/stringstream-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%description
%{summary}.
%prep
%autosetup -n StringStream-%{version}
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json stringstream.js \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%check
%{__nodejs} -e 'require("./")'
%files
%doc README.md example.js
%license LICENSE.txt
%{nodejs_sitelib}/%{srcname}
%changelog
* Wed Aug 12 2020 wangyue <wangyue92@huawei.com> - 0.0.5-1
- package init

5
nodejs-stringstream.yaml Normal file
View File

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

BIN
stringstream-0.0.5.tar.gz Normal file

Binary file not shown.