commit
790dc1447e
37
nodejs-stringstream.spec
Normal file
37
nodejs-stringstream.spec
Normal 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
5
nodejs-stringstream.yaml
Normal 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
BIN
stringstream-0.0.5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user